Browse Source

Added possibility to include certs template, without create it.

Change-Id: If5faaa420f07876d3d83296126aacd0309c5eaf3
pull/78/head
Oleksandr Shyshko 6 years ago
parent
commit
9331e6c53b
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