aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/docker/templates/http-proxy-conf.j2
diff options
context:
space:
mode:
authorMaciej Skrocki <maciej.skrocki@intel.com>2017-09-01 15:33:53 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-09-05 00:00:01 -0700
commita691427480c3a8cad60b275d47d7ddbde1c26f64 (patch)
tree0c4474ebe7bfa260c94cfddd4e53c3f688333a16 /ansible/roles/docker/templates/http-proxy-conf.j2
parent22dfb4fcb474ac201a22c5b3ce3c34baec641f9d (diff)
Introduced ansible playbook to setup NSB.
Change-Id: I5865cd50d5fde26e9e9fc265d4385372d668413f Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'ansible/roles/docker/templates/http-proxy-conf.j2')
-rw-r--r--ansible/roles/docker/templates/http-proxy-conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/docker/templates/http-proxy-conf.j2 b/ansible/roles/docker/templates/http-proxy-conf.j2
new file mode 100644
index 000000000..854ddfe09
--- /dev/null
+++ b/ansible/roles/docker/templates/http-proxy-conf.j2
@@ -0,0 +1,2 @@
+[Service]
+Environment={% if "http_proxy" in proxy_env %}"HTTP_PROXY={{ proxy_env.http_proxy }}" {% endif %} {% if "https_proxy" in proxy_env %} "HTTPS_PROXY={{ proxy_env.https_proxy }}" {% endif %} {% if "http_proxy" in proxy_env or "https_proxy" in proxy_env %} "NO_PROXY=localhost,127.0.0.0/8" {% endif %}