summaryrefslogtreecommitdiffstats
path: root/pillar/role/web/apache-httpd.sls
diff options
context:
space:
mode:
authorPratyush Desai2023-03-11 22:11:32 +0100
committerPratyush Desai2023-03-11 22:11:32 +0100
commit84c1cecf614910ea0da86d9ffde349731bda4b30 (patch)
treee5ed2f92ea06613431b6970434911bb483a9b2e0 /pillar/role/web/apache-httpd.sls
parentcc007e6470a54311fac2facd1c6e9b321a3a4f28 (diff)
parentc932881cd70bd64db40245ea1e3df283f3859c78 (diff)
downloadsalt-84c1cecf614910ea0da86d9ffde349731bda4b30.tar.gz
salt-84c1cecf614910ea0da86d9ffde349731bda4b30.tar.bz2
salt-84c1cecf614910ea0da86d9ffde349731bda4b30.zip
Merge pull request 'Import themis / BookStack' (#35) from bookstack into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/35 Reviewed-by: Pratyush Desai <pratyush.desai@liberta.casa>
Diffstat (limited to 'pillar/role/web/apache-httpd.sls')
-rw-r--r--pillar/role/web/apache-httpd.sls13
1 files changed, 13 insertions, 0 deletions
diff --git a/pillar/role/web/apache-httpd.sls b/pillar/role/web/apache-httpd.sls
new file mode 100644
index 0000000..bd77162
--- /dev/null
+++ b/pillar/role/web/apache-httpd.sls
@@ -0,0 +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"'