summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-08-08 00:42:56 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-08-20 22:12:03 +0200
commit5b08c3fb96e54e0ae8ae1d650658b27dcdfd78de (patch)
tree48ef1e0e6ef766a63f1b04a071a4ebfd0b90c323 /chaos-at-home
parentfix docker for debian bookworm+ (diff)
make acmetool cert role more generic (WIP - needs more testing)
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-http-proxy.yml4
-rw-r--r--chaos-at-home/ch-imap-proxy.yml11
2 files changed, 12 insertions, 3 deletions
diff --git a/chaos-at-home/ch-http-proxy.yml b/chaos-at-home/ch-http-proxy.yml
index 0376fcd5..67e3521a 100644
--- a/chaos-at-home/ch-http-proxy.yml
+++ b/chaos-at-home/ch-http-proxy.yml
@@ -6,6 +6,10 @@
- role: core/base
- role: core/sshd/base
- role: core/zsh
+
+- name: Payload Setup
+ hosts: ch-http-proxy
+ roles:
- role: apt-repo/spreadspace
- role: x509/acmetool/base
- role: nginx/base
diff --git a/chaos-at-home/ch-imap-proxy.yml b/chaos-at-home/ch-imap-proxy.yml
index 936140bc..1c05f28b 100644
--- a/chaos-at-home/ch-imap-proxy.yml
+++ b/chaos-at-home/ch-imap-proxy.yml
@@ -6,10 +6,15 @@
- role: core/base
- role: core/sshd/base
- role: core/zsh
+
+- name: Payload Setup
+ hosts: ch-imap-proxy
+ roles:
- role: apt-repo/spreadspace
- role: x509/acmetool/base
- role: x509/acmetool/cert
- acmetool_cert_name: "imap.chaos-at-home.org"
+ acmetool_cert_hostnames:
+ - "imap.chaos-at-home.org"
acmetool_cert_config:
request:
challenge:
@@ -25,8 +30,8 @@
dest: /etc/stunnel/imap.conf
content: |
pid = /var/run/stunnel-imap.pid
- cert = /var/lib/acme/live/imap.chaos-at-home.org/fullchain
- key = /var/lib/acme/live/imap.chaos-at-home.org/privkey
+ cert = {{ x509_certificate_path_fullchain }}
+ key = {{ x509_certificate_path_key }}
[imap]
client = yes