Browse Source

Merge "Added possibility to include certs template, without create it."

pull/78/head
Vasyl Saienko 6 years ago
parent
commit
e3e77f3c21
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      salt/minion/cert.sls

+ 2
- 0
salt/minion/cert.sls View File

{%- set created_ca_files = [] %} {%- set created_ca_files = [] %}


{%- for cert_name,cert in minion.get('cert', {}).iteritems() %} {%- for cert_name,cert in minion.get('cert', {}).iteritems() %}
{%- if cert.get('enabled', True) %}
{%- set rowloop = loop %} {%- set rowloop = loop %}


{%- set key_file = cert.get('key_file', '/etc/ssl/private/' + cert.common_name + '.key') %} {%- set key_file = cert.get('key_file', '/etc/ssl/private/' + cert.common_name + '.key') %}
- require: - require:
- cmd: salt_minion_cert_{{ cert_name }}_all - cmd: salt_minion_cert_{{ cert_name }}_all
{%- endif %} {%- endif %}
{%- endif %}


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



Loading…
Cancel
Save