summaryrefslogtreecommitdiffstats
path: root/pillar/role
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
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')
-rw-r--r--pillar/role/memcached.sls2
-rw-r--r--pillar/role/php-fpm.sls1
-rw-r--r--pillar/role/web/apache-httpd.sls13
3 files changed, 16 insertions, 0 deletions
diff --git a/pillar/role/memcached.sls b/pillar/role/memcached.sls
new file mode 100644
index 0000000..e3ded73
--- /dev/null
+++ b/pillar/role/memcached.sls
@@ -0,0 +1,2 @@
+memcached:
+ listen_address: /run/memcached/memcached.sock
diff --git a/pillar/role/php-fpm.sls b/pillar/role/php-fpm.sls
new file mode 100644
index 0000000..1bb8bf6
--- /dev/null
+++ b/pillar/role/php-fpm.sls
@@ -0,0 +1 @@
+# empty
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"'