Closed swalberg closed 8 years ago
I was looking at this a bit more... is disabled true
(or enabled false
) also required if we have action :disable
?
Hi there -- it looks like someone sent the firewall additional actions after :disable
:
* service[firewalld] action enable
- enable service service[firewalld]
* service[firewalld] action start
- start service service[firewalld]
The disabled
attribute on the firewall resource is there for this reason -- in case you want to be sure nothing turns the firewall back on through notifications/actions. You should probably use that in this case 👍
Let me know if that doesn't solve your issue. Cheers!
Hello! Ran into a regression between 2.5.0 and 2.5.2:
Cookbook version
2.5.2 (does not happen in 2.5.0)
Chef-client version
12.14.89, 12.11.18
Platform Details
CentOS 6.7 and 7.2
Scenario:
If I disable the firewall and a subsequent recipe adds a firewall rule (or rules), the result is that the firewall is started with those rule(s).
Steps to Reproduce:
Expected Result:
I expect that, at the very least, the firewall would not be running.
Actual Result:
I get a firewall that only allows port 9876:
This scenario can happen quite easily if the base firewall settings are configured in a common recipe and firewall rules are added by other cookbooks. The only way to prevent this would be to have a global attribute and
only_if
conditions.This happened to us when I upgraded
firewall
to fix #140 for a box where the firewall was disabled, and the recipe to install the Nagios NRPE daemon tried to open up access to NRPE. As a result, I had a server that would only accept NRPE connections.