Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set web_certs_dir = salt['grains.get']('edge-cloud-master-pillar_roots') ~ '/web/files/certs/' %}
- {% set web_domain_certs = salt['cmd.run']('ls ' ~ web_certs_dir).split(' ') %}
- {% if web_domain_certs|length > 0 %}
- web:
- certs:
- {% for domain in web_domain_certs %}
- {{ domain }}:
- crt: |
- {{ salt['cmd.run']('cat ' ~ web_certs_dir ~ domain ~ '/' ~ domain ~ '.crt')|indent(8) }}
- key: |
- {{ salt['cmd.run']('cat ' ~ web_certs_dir ~ domain ~ '/' ~ domain ~ '.key')|indent(8) }}
- ca-bundle: |
- {{ salt['cmd.run']('cat ' ~ web_certs_dir ~ domain ~ '/' ~ domain ~ '.ca-bundle')|indent(8) }}
- {% endfor %}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement