-
Notifications
You must be signed in to change notification settings - Fork 48
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
Reload service rather than restart #10
Reload service rather than restart #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me,
tested it without issues.
firewalld/config.sls
Outdated
@@ -13,7 +13,7 @@ directory_firewalld: | |||
- require: | |||
- pkg: package_firewalld # make sure package is installed | |||
- listen_in: | |||
- module: service_firewalld # restart service | |||
- service: service_firewalld # restart service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amendlik Mind you either modify the comments (to reflect the new behaviour) or remove them, for consistency?
4ce6009
to
103afc0
Compare
After some more testing, reloading the service ( |
|
||
- require_in: | ||
- service: service_firewalld | ||
- watch_in: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not keep the listen_in?
that way only after all the changes it will be reloaded, instead of everytime.
|
@amendlik then I see no problems, @javierbertoli shall we merge this? |
@amendlik 's arguments are reasonable, so I'll merge. Thanks you guys! |
The Salt Minion does not react well to FirewallD being restarted. It becomes unreachable indefinitely, until it is restarted. Further, I don't know of any reasons to restart the FirewallD service, since the service dynamically manages the kernel module.
This PR makes the service reload its conifg, rather than restarting.