From 906dd92d7ed1bd79eb2524b9a3e1a0d880eab068 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 19 Feb 2023 00:36:43 +0100 Subject: Add web.apache-httpd role Signed-off-by: Georg Pfuetzenreuter --- pillar/role/web/apache-httpd.sls | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pillar/role/web/apache-httpd.sls (limited to 'pillar/role/web/apache-httpd.sls') diff --git a/pillar/role/web/apache-httpd.sls b/pillar/role/web/apache-httpd.sls new file mode 100644 index 0000000..5b4b64b --- /dev/null +++ b/pillar/role/web/apache-httpd.sls @@ -0,0 +1,3 @@ +apache: + global: + ServerAdmin: system@lysergic.dev -- cgit v1.2.3 From 4653655010c16d8f1f128480b55d4cd2e9f5a9e7 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 19 Feb 2023 13:40:47 +0100 Subject: profile.apache-httpd: manage snippets - add apache-httpd profile with snippets configuration - add TLS snippet to apache-httpd role pillar Signed-off-by: Georg Pfuetzenreuter --- pillar/role/web/apache-httpd.sls | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pillar/role/web/apache-httpd.sls') 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"' -- cgit v1.2.3