-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Inconsistent treatment of the action attribute #28
Comments
Thanks for reporting. I think the issue here is the documentation. It looks like firewall_rule has different attributes. |
I changed the configuration to
and get a successful converge. Note that port_range got merged in the firewall cookbook to port. |
Thanks - that does allow the converge to succeed, but it also results in the rule getting applied with an Also, providing a range for the I'm happy to submit PRs for these problems - I just needed some direction on whether the desired solution was to make a breaking change for the |
PR's gladly accepted. I've been looking at the firewall_resource and realizing that the range doesn't seem to work correctly. |
Take a look at the PR I've started so that we don't duplicate work. Let me know what you think. |
Cookbook version
3.1.0
Chef-client version
12.21.1 or 13.1.31
Platform Details
Ubuntu 14.04
Scenario:
There seem to be some lingering inconsistencies in how the ufw cookbook treats the action attribute of a firewall rule. The example files (such as
examples/roles/fw_example.rb
) and examples in the readme treat it as a UFW action (deny
orallow
), whilerecipes/default.rb
seems to lean toward treating it as a Chef action (see line 50). I think either treatment could be fine, but it needs to be consistent throughout the cookbook. I have a personal preference for treating it as a UFW action because that would be more backwards-compatible; the UFW cookbook could assume the Chef action for afirewall_rule
should always be:create
.Steps to Reproduce:
README.md
and apply them to your nodeufw::default
to your node's run listchef-client
Expected Result:
One of the rules created in UFW should have an action of
Deny
.Actual Result:
chef-client
bombs out when it tries to create the "block Tomcat"firewall_rule
with adeny
action.Error output and the
.kitchen.yml
file that I'm using are available here: https://gist.github.com/pwalz/c36ced87559b56c51603755513a09102The text was updated successfully, but these errors were encountered: