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.

17 lines
412 B

  1. self-signed-cert:
  2. pkg.installed:
  3. - name: python3-openssl
  4. module.run:
  5. - tls.create_self_signed_cert:
  6. - days: 3650
  7. - require:
  8. - pkg: python3-openssl
  9. - unless: ls /etc/pki/tls/certs/localhost.key
  10. file.managed:
  11. - name: /etc/pki/tls/certs/localhost.key
  12. - mode: 600
  13. - replace: False
  14. - require:
  15. - module: self-signed-cert
  16. - require_in:
  17. - service: nginx