|
|
|
|
|
|
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- service: nginx_service |
|
|
- service: nginx_service |
|
|
|
|
|
|
|
|
|
|
|
{% if salt['pillar.get']("nginx:ng:certificates:{}:private_key".format(domain)) %} |
|
|
nginx_{{ domain }}_ssl_key: |
|
|
nginx_{{ domain }}_ssl_key: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/nginx/ssl/{{ domain }}.key |
|
|
- name: /etc/nginx/ssl/{{ domain }}.key |
|
|
|
|
|
|
|
|
- contents_pillar: nginx:ng:certificates:{{ domain }}:private_key |
|
|
- contents_pillar: nginx:ng:certificates:{{ domain }}:private_key |
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- service: nginx_service |
|
|
- service: nginx_service |
|
|
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
{%- endfor %} |
|
|
{%- endfor %} |