diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-12-22 13:01:30 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-12-22 13:01:30 +0100 |
commit | 18e0446c9c545f396d7737b406e6e207748e7926 (patch) | |
tree | f3f07876c819a4fb9845c6a098adfa9553ed7819 /roles/x509/acmetool/base/templates/systemd-override.conf.j2 | |
parent | add 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.j2 | 19 |
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 %} |