Skip to content
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

Enable CentOS/RHEL 8 support, stop triggering sync exec when nothing changes #71

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

WoutResseler
Copy link
Contributor

No description provided.

# only when difference with in-kernel set is detected
unless => "ipset_sync -c '${config_path}' -d -i ${title}${ignore_contents_opt}",
require => Package['ipset'],
unless => "ipset_sync -c '${config_path}' -d -i ${title}${ignore_contents_opt}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the unless test not working on EL8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked into this briefly, but came up empty. So for now all I know is it doesn't work, but not why :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bastelfreak Heya, I know this is a very stupid solution and probably not a proper fix. But I can't seem to find another solution. But it would be nice to finally have these eye soar ipset sync messages gone from our foreman reports :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took me a bit to read the code, but I think the refreshonly is fine. We notify the exec resource when keep_in_sync is true, and it doesn't make sense to always run it.

@bastelfreak bastelfreak added the bug Something isn't working label Nov 9, 2022
@bastelfreak bastelfreak merged commit 60c9733 into voxpupuli:master Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants