Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewall 7.0.3: parameter issue #44

Closed
moritzdietz opened this issue Nov 8, 2023 · 2 comments
Closed

Firewall 7.0.3: parameter issue #44

moritzdietz opened this issue Nov 8, 2023 · 2 comments

Comments

@moritzdietz
Copy link

moritzdietz commented Nov 8, 2023

We just updated to the latest version of your module and the firewall module – 7.0.2 and 7.0.3 respectively.

After that we noticed the following in our reports:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Firewall_multi[000 accept all icmp]: has no parameter named 'action'

We then checked the firewall docs: https://forge.puppet.com/modules/puppetlabs/firewall/reference#policy
So it seems that action was replaced by policy.

After changing our rule to say:

contoso_base::firewall::pre::rules:
  '000 accept all icmp':
    policy: 'accept'
    proto: 'icmp'

This hash is handled in a manifest like so:

create_resources(firewall_multi, $rules)

it still reported an issue, this time it said policy is no known parameter

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Firewall_multi[000 accept all icmp]: has no parameter named 'policy'

I'm a bit stumped now. Am I using the module wrong or is there something missing?

@robertc99
Copy link
Collaborator

Actually the replacement for action is jump.
puppetlabs/puppetlabs-firewall#1145

@moritzdietz
Copy link
Author

Ah, perfect! Thank you for the hint. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants