Browse Source

Changing Nginx NG to Check for Certificates

Still getting an error message when attempting to apply Nginx.NG
master
Nate Bohman 5 years ago
parent
commit
203532c122
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      nginx/ng/certificates.sls

+ 2
- 0
nginx/ng/certificates.sls View File

{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}


{% if salt['pillar.get']('nginx:ng:certificates') is defined and salt['pillar.get']('nginx:ng:certificates') %}
{%- for domain in salt['pillar.get']('nginx:ng:certificates', {}).keys() %} {%- for domain in salt['pillar.get']('nginx:ng:certificates', {}).keys() %}


nginx_{{ domain }}_ssl_certificate: nginx_{{ domain }}_ssl_certificate:
- service: nginx_service - service: nginx_service
{% endif %} {% endif %}
{%- endfor %} {%- endfor %}
{% endif %}

Loading…
Cancel
Save