浏览代码

Add missing dependency on nginx_service

master
Gilles Dartiguelongue 7 年前
父节点
当前提交
43c4eca3bb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      nginx/ng/certificates.sls

+ 4
- 0
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 %}


正在加载...
取消
保存