-
Notifications
You must be signed in to change notification settings - Fork 27
ufw making changes every time #60
Comments
@attachmentgenie would that "ready" mean this issue is fixed? We are having it too and it pollutes logs on multiple severs. |
ETA on this issue? |
If you are using the module attachmentgenie/ufw from Puppet Forge, it has not been updated since v1.4.9 in 2014, and the exec's unless condition from back then fails to find that the rule is present due to trailing whitespace in the output of "ufw | status" for ufw 0.35+ on newer Ubuntu versions. It would be nice if the Forge module were updated with more current code as this looks to be fixed as of eeb6cb8. You could try pointing to this repository instead. |
Good to know. When/if I get a chance I will let you know if that fixes it. |
In my case that change doesn't work for situation where destination IP address is any. I had to do following change: 'any:all' => "ufw status | grep -qE ' +ALLOW +${from_match}${proto_match}( +.*)?$'", in line 97 of allow.pp. @ebdavison can you please have a look if that helps? |
I have a Ubuntu 18.04 system that has puppet agent 6.02 installed and ufw is setting firewall rules every time the system runs as below. It should only apply changes if there is a change to make and verify the settings the next run as puppet code is supposed to do. Here are the logs from the report:
The text was updated successfully, but these errors were encountered: