63488139c6
This change allows an AIO to automatically configure appropriate settings in global_environment_variables to deploy correctly behind an http proxy. This gives two benefits, new users behind proxies are less likley to fail, and CI behind proxies can test AIO deployments without having to apply any additional configuration. Change-Id: Ib094d61762078a4535ee82b9cb59ebf3ed177be5
12 lines
590 B
YAML
12 lines
590 B
YAML
---
|
|
no_proxy_env: "localhost,127.0.0.1,{{ internal_lb_vip_address }},{{ external_lb_vip_address }},{% for host in groups['all_containers'] %}{{ hostvars[host]['container_address'] }}{% if not loop.last %},{% endif %}{% endfor %}"
|
|
http_proxy_env: "{{ lookup('env', 'http_proxy') }}"
|
|
https_proxy_env: "{{ lookup('env', 'https_proxy') }}"
|
|
global_environment_variables:
|
|
HTTP_PROXY: "{{ http_proxy_env }}"
|
|
HTTPS_PROXY: "{{ https_proxy_env }}"
|
|
http_proxy: "{{ http_proxy_env }}"
|
|
https_proxy: "{{ https_proxy_env }}"
|
|
NO_PROXY: "{{ no_proxy_env }}"
|
|
no_proxy: "{{ no_proxy_env }}"
|