-
Notifications
You must be signed in to change notification settings - Fork 33
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
New parameter purge_unmanaged_rules to reload nftables if configuration does not match reality #253
Conversation
Please run |
@bastelfreak Edit: I have pushed this change as it seems logical to avoid a bogus reload of nftables just because the has file doesn't survive reboot. |
This is a variation on #115, where I use:
Effect:
First install:
Subsequent runs:
Hash file not present (eg deleted):
Hash of memory state does not match hash on disk (eg rule manually added in memory):
Changes invoked by Puppet to rules:
Exec time hit
Everyone tries not to use execs, but they work well in this case and over a number of tests I barely saw a
0.1 sec
difference, and that wasn't consistent so I think its a good solution.Thanks for your consideration of this PR!