From 43c4eca3bbdce189e715d2d5e8289fa0a74d4cf0 Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Tue, 11 Jul 2017 11:44:40 +0200 Subject: [PATCH] Add missing dependency on nginx_service --- nginx/ng/certificates.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx/ng/certificates.sls b/nginx/ng/certificates.sls index 7bd01aa..dbc8cbd 100644 --- a/nginx/ng/certificates.sls +++ b/nginx/ng/certificates.sls @@ -12,6 +12,8 @@ create_nginx_dhparam_{{ dh_param }}_key: - name: {{ certificates_path }}/{{ dh_param }} - contents_pillar: nginx:ng:dh_param:{{ dh_param }} - makedirs: True + - watch_in: + - service: nginx_service {%- else %} generate_nginx_dhparam_{{ dh_param }}_key: pkg.installed: @@ -23,6 +25,8 @@ generate_nginx_dhparam_{{ dh_param }}_key: - name: openssl dhparam -out {{ dh_param }} {{ value.get('keysize', 2048) }} - cwd: {{ certificates_path }} - creates: {{ certificates_path }}/{{ dh_param }} + - watch_in: + - service: nginx_service {%- endif %} {%- endfor %}