Pārlūkot izejas kodu

Merge pull request #131 from arthurlogilab/patch-1

avoid crash if private_key is not shipped in pillar
susefix
Forrest pirms 8 gadiem
vecāks
revīzija
9e47729230
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      nginx/ng/certificates.sls

+ 2
- 1
nginx/ng/certificates.sls Parādīt failu

@@ -11,6 +11,7 @@ nginx_{{ domain }}_ssl_certificate:
- watch_in:
- service: nginx_service

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

Notiek ielāde…
Atcelt
Saglabāt