-
Notifications
You must be signed in to change notification settings - Fork 416
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
Service nginx not reloaded when changes in configuration #194
Comments
To broaden the discussion, I'm a bit surprised to see a specific state ( What I had expected is:
|
Hello @daks, I'm not experiencing this behaviour since when I'm doing changes in |
@noelmcloughlin Yeah, looks like it - the problem is that when you have a state like this:
And you've manually started your service, but didn't enable it, like this:
Salt enables the service, which says, "Hey this state changed!" The correct thing to do in a manual setup is to have two different states, like this:
(or, you know, quit fiddling with things manually and manage them via salt ) |
Guys would this patch work for you? It gets triggered by
|
Hello,
we are using the nginx.ng part of this formula on Debian 9 with Salt 2018.3.1. We use a wrapper that include the following states
I recently added
nginx.ng.servers
which seems to handle service reload when configuration change (and pillarservice.enable
is not set to False).I think it does not work as expected because I don't see any reload of service when I change config, and running salt returns
This part of the code https://github.com/saltstack-formulas/nginx-formula/blob/master/nginx/ng/servers.sls#L23 uses
reload: True
in stateservice.running
but it seems that this parameter does not exist https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.running on 2018.3 or 2017.7.The text was updated successfully, but these errors were encountered: