-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Doesn't ensure that ufw stays enabled #214
Comments
Hey There If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution. |
Hi there -- indeed, the default action for the firewall resource is If you'd like, we do ensure the service is started and running when using iptables on Ubuntu. |
Thanks for the context! Would something like what's in the ufw_enable! unless ufw_active? |
I think it'd need to be in the install action, as well. I'd take a look at one of the other providers and see where it ensures |
Yeah, I was asking if you saw anything wrong with copying the logic from |
Cookbook version
2.7.0
Chef-client version
14.10.9
Platform Details
Ubuntu 18.04
Scenario:
Chef should enable UFW if it is disabled.
Steps to Reproduce:
Recipe:
Steps:
# chef-client
# ufw disable
# chef-client
Expected Result:
Actual Result:
The text was updated successfully, but these errors were encountered: