Browse Source

Merge pull request #135 from aboe76/nginx_ng_listen

change watch to listen so it will only trigger a refresh of the service at the end
susefix
Forrest 8 years ago
parent
commit
3c6f0e343e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      nginx/ng/init.sls
  2. +1
    -1
      nginx/ng/servers.sls
  3. +1
    -1
      nginx/ng/service.sls

+ 1
- 1
nginx/ng/init.sls View File

extend: extend:
nginx_service: nginx_service:
service: service:
- watch:
- listen:
- file: nginx_config - file: nginx_config
- require: - require:
- file: nginx_config - file: nginx_config

+ 1
- 1
nginx/ng/servers.sls View File

- reload: True - reload: True
- use: - use:
- service: nginx_service - service: nginx_service
- watch:
- listen:
{{ file_requisites(server_states) }} {{ file_requisites(server_states) }}
- require: - require:
{{ file_requisites(server_states) }} {{ file_requisites(server_states) }}

+ 1
- 1
nginx/ng/service.sls View File

{% else %} {% else %}
- sls: nginx.ng.pkg - sls: nginx.ng.pkg
{% endif %} {% endif %}
- watch:
- listen:
{% if nginx.install_from_source %} {% if nginx.install_from_source %}
- cmd: nginx_install - cmd: nginx_install
{% else %} {% else %}

Loading…
Cancel
Save