summaryrefslogtreecommitdiffstats
path: root/pillar/role
diff options
context:
space:
mode:
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"'