change service watch to listen so it will only trigger a refresh of nginx service and the end of the state run

This commit is contained in:
Niels Abspoel 2016-10-29 09:34:28 +02:00
parent 26183bc14b
commit ce2024df4b
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ include:
extend: extend:
nginx_service: nginx_service:
service: service:
- watch: - listen:
- file: nginx_config - file: nginx_config
- require: - require:
- file: nginx_config - file: nginx_config

View File

@ -23,7 +23,7 @@ nginx_service_reload:
- 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) }}

View File

@ -30,7 +30,7 @@ nginx_service:
{% 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 %}