Open sticky-note opened 2 years ago
nginx-formula v2.6.0
v2.6.0
Both master and minon: salt version 3003
3003
My nginx.conf is like:
nginx.conf
... http { ... include snippets/*.cnf ... }
Add this snippet on a second state.highstate run
state.highstate
nginx: snippets: + global.cnf: + - underscore_in_header: 'on'
Run a highstate with nginx-formula included First run is ok, nginx is started with nginx.conf above
nginx-formula
Add snippet above Run a second state.highstate Nginx service do not get reloaded on the second run Changes are not taken iinto account.
minion.org.com: ID: nginx_snippet_global.cnf Function: file.managed Name: /usr/local/etc/nginx/snippets/global.cnf Result: True Comment: File /usr/local/etc/nginx/snippets/global.cnf updated Started: 18:52:03.020966 Duration: 1665.896 ms Changes: ---------- diff: New file mode: 0644 Summary for minion.org.com -------------- Succeeded: 143 (changed=1) Failed: 0 -------------- Total states run: 143 Total run time: 57.696 s
state.apply nginx two times with a new snippet the second time.
state.apply nginx
Reload of nginx service when we add new snippets
nginx
Your setup
Formula commit hash / release tag
nginx-formula
v2.6.0
Versions reports (master & minion)
Both master and minon: salt version
3003
Pillar / config used
My
nginx.conf
is like:Add this snippet on a second
state.highstate
runBug details
Describe the bug
Run a highstate with
nginx-formula
included First run is ok, nginx is started withnginx.conf
aboveAdd snippet above Run a second
state.highstate
Nginx service do not get reloaded on the second run Changes are not taken iinto account.Steps to reproduce the bug
state.apply nginx
two times with a new snippet the second time.Expected behaviour
Reload of
nginx
service when we add new snippetsAttempts to fix the bug
Additional context