Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

certificate.sls 482B

9 years ago
12345678910111213141516171819202122
  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. {%- if system.ca_certificates is defined %}
  4. {%- for certificate in system.ca_certificates %}
  5. {{ system.ca_certs_dir }}/{{ certificate }}.crt:
  6. file.managed:
  7. - source: salt://pki/{{ certificate }}/{{ certificate }}-chain.cert.pem
  8. - watch_in:
  9. - cmd: update_certificates
  10. {%- endfor %}
  11. update_certificates:
  12. cmd.wait:
  13. - name: /usr/sbin/update-ca-certificates
  14. {%- endif %}
  15. {%- endif %}