summaryrefslogtreecommitdiff
path: root/roles/x509/acmetool/base/templates/systemd-override.conf.j2
blob: 5de58bddf4a8f53a74ef706bf0ea8a568f1c8f85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 %}