summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/tasks
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-04-25 12:59:20 -0400
committerJason DeTiberus <detiber@gmail.com>2016-04-25 12:59:20 -0400
commit12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95 (patch)
treee3a5a4313adebf617c43be22e61897bc9a19ce41 /roles/openshift_facts/tasks
parentfb0c88c4246207f8b6132082c8bf67145df9ea01 (diff)
parentb90d2e6e80a7080d1753caba1251505383b998f9 (diff)
downloadopenshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.gz
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.bz2
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.xz
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.zip
Merge pull request #1385 from sdodson/global-proxy
Global Proxy Config
Diffstat (limited to 'roles/openshift_facts/tasks')
-rw-r--r--roles/openshift_facts/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/openshift_facts/tasks/main.yml b/roles/openshift_facts/tasks/main.yml
index 36def57c8..7510e4e39 100644
--- a/roles/openshift_facts/tasks/main.yml
+++ b/roles/openshift_facts/tasks/main.yml
@@ -33,3 +33,18 @@
is_containerized: "{{ l_is_containerized | default(None) }}"
public_hostname: "{{ openshift_public_hostname | default(None) }}"
public_ip: "{{ openshift_public_ip | default(None) }}"
+
+# had to be done outside of the above because hostname isn't yet set
+- name: Gather hostnames for proxy configuration
+ openshift_facts:
+ role: common
+ local_facts:
+ http_proxy: "{{ openshift_http_proxy | default(None) }}"
+ https_proxy: "{{ openshift_https_proxy | default(None) }}"
+ no_proxy: "{{ openshift_no_proxy | default(None) }}"
+ generate_no_proxy_hosts: "{{ openshift_generate_no_proxy_hosts | default(True) }}"
+ no_proxy_internal_hostnames: "{{ hostvars | oo_select_keys(groups['oo_nodes_to_config']
+ | union(groups['oo_masters_to_config'])
+ | union(groups['oo_etcd_to_config'] | default([])))
+ | oo_collect('openshift.common.hostname') | default([]) | join (',')
+ }}"