1 2 3 4 5 6 7 8 9 10 11 12 13
{%- set host = grains['host'] -%} {%- set fqdn = grains['fqdn'] -%} apache: global: ServerAdmin: system@lysergic.dev profile: apache-httpd: snippets: ssl_{{ host }}: - 'SSLCertificateFile "/etc/ssl/{{ host }}/{{ fqdn }}.crt"' - 'SSLCertificateKeyFile "/etc/ssl/{{ host }}/{{ fqdn }}.key"'