Files
configpolicy/roles/docker/templates/http-proxy.conf.j2
Dustin C. Hatch 1f535e980f roles/docker: Install and set up Docker daemon
The *docker* role configures the Docker daemon on the managed machine.
2019-09-19 19:27:12 -05:00

13 lines
334 B
Django/Jinja

{% if http_proxy is defined or http_proxy is defined %}
[Service]
{% if http_proxy is defined %}
Environment=HTTP_PROXY={{ http_proxy }}
{% endif %}
{% if https_proxy is defined %}
Environment=HTTPS_PROXY={{ https_proxy }}
{% endif %}
{% if no_proxy is defined %}
Environment=NO_PROXY={{ no_proxy|join(',') }}
{% endif %}
{% endif %}