From ce2024df4be508bfa1f330581fdf854b0f518241 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Sat, 29 Oct 2016 09:34:28 +0200 Subject: [PATCH] change service watch to listen so it will only trigger a refresh of nginx service and the end of the state run --- nginx/ng/init.sls | 2 +- nginx/ng/servers.sls | 2 +- nginx/ng/service.sls | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/ng/init.sls b/nginx/ng/init.sls index 4c64626..3af5427 100644 --- a/nginx/ng/init.sls +++ b/nginx/ng/init.sls @@ -13,7 +13,7 @@ include: extend: nginx_service: service: - - watch: + - listen: - file: nginx_config - require: - file: nginx_config diff --git a/nginx/ng/servers.sls b/nginx/ng/servers.sls index d468549..7365a46 100644 --- a/nginx/ng/servers.sls +++ b/nginx/ng/servers.sls @@ -23,7 +23,7 @@ nginx_service_reload: - reload: True - use: - service: nginx_service - - watch: + - listen: {{ file_requisites(server_states) }} - require: {{ file_requisites(server_states) }} diff --git a/nginx/ng/service.sls b/nginx/ng/service.sls index 3ea3d5b..2cc51c6 100644 --- a/nginx/ng/service.sls +++ b/nginx/ng/service.sls @@ -30,7 +30,7 @@ nginx_service: {% else %} - sls: nginx.ng.pkg {% endif %} - - watch: + - listen: {% if nginx.install_from_source %} - cmd: nginx_install {% else %}