summaryrefslogtreecommitdiffstats
path: root/pillar/role/web
diff options
context:
space:
mode:
Diffstat (limited to 'pillar/role/web')
-rw-r--r--pillar/role/web/apache-httpd.sls10
1 files changed, 10 insertions, 0 deletions
diff --git a/pillar/role/web/apache-httpd.sls b/pillar/role/web/apache-httpd.sls
index 5b4b64b..bd77162 100644
--- a/pillar/role/web/apache-httpd.sls
+++ b/pillar/role/web/apache-httpd.sls
@@ -1,3 +1,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"'