-
Notifications
You must be signed in to change notification settings - Fork 36
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
Should remove unmanaged rules #5
Comments
+1 for this, it would be nice for the rule to be removed upon the pillar data being removed. |
We can include this within the "_states/ufw.py" `import subprocess subprocess.check_call('yes|ufw reset', That fixes the problem (for the interim) it'll reset the rules and then re-apply from your Pillar data. |
|
The better solution would be to write a rule removal in python? Is this something you've done? |
You would need to enumerate the current rules, compare them to the managed rules in some way, and remove the ones that don't match. |
Removing an item from pillar does not remove the corresponding rules.
This state appears only able to add rules.
The text was updated successfully, but these errors were encountered: