summaryrefslogtreecommitdiff
path: root/roles/x509/acmetool/base/templates/systemd-override.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-12-22 13:01:30 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-12-22 13:01:30 +0100
commit18e0446c9c545f396d7737b406e6e207748e7926 (patch)
treef3f07876c819a4fb9845c6a098adfa9553ed7819 /roles/x509/acmetool/base/templates/systemd-override.conf.j2
parentadd prometheus snmp exporter (diff)
move acmetool to new x509 subdir
Diffstat (limited to 'roles/x509/acmetool/base/templates/systemd-override.conf.j2')
-rw-r--r--roles/x509/acmetool/base/templates/systemd-override.conf.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/x509/acmetool/base/templates/systemd-override.conf.j2 b/roles/x509/acmetool/base/templates/systemd-override.conf.j2
new file mode 100644
index 00000000..5de58bdd
--- /dev/null
+++ b/roles/x509/acmetool/base/templates/systemd-override.conf.j2
@@ -0,0 +1,19 @@
+{% if acmetool_challenge_webroot_path is defined %}
+[Unit]
+# In case the webroot path is hosted by a filesystem that is
+# using a systemd automount unit the ReadWritePaths= below does
+# prevent the unit from being loaded when the filesystem is
+# not yet mounted.
+RequiresMountsFor={{ acmetool_challenge_webroot_path }}
+
+{% endif %}
+[Service]
+{% if acmetool_http_proxy is defined %}
+Environment=http_proxy={{ acmetool_http_proxy }}
+{% endif %}
+{% if acmetool_https_proxy is defined %}
+Environment=https_proxy={{ acmetool_https_proxy }}
+{% endif %}
+{% if acmetool_challenge_webroot_path is defined %}
+ReadWritePaths={{ acmetool_challenge_webroot_path }}
+{% endif %}