diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-07-24 18:49:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 18:49:14 -0400 |
commit | e35719849e536dc32602d34d3518e53f38570a51 (patch) | |
tree | 22652ed31c73ca0bc79ca412da4a67eafea55aa4 /roles | |
parent | e0c91bffc7a7b918a1ee81ec54f0b25c2e6c9590 (diff) | |
parent | 58b3a05fbea15efb6ee809e8e3b3b4a0cb977fab (diff) | |
download | openshift-e35719849e536dc32602d34d3518e53f38570a51.tar.gz openshift-e35719849e536dc32602d34d3518e53f38570a51.tar.bz2 openshift-e35719849e536dc32602d34d3518e53f38570a51.tar.xz openshift-e35719849e536dc32602d34d3518e53f38570a51.zip |
Merge pull request #4806 from tbielawa/bz1466783_etcd_ips_in_masters_no_proxy
Bz1466783 etcd ips in masters no proxy
Diffstat (limited to 'roles')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 7 | ||||
-rw-r--r-- | roles/openshift_master/tasks/main.yml | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 4712ca3a8..49cc51b48 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -1647,6 +1647,13 @@ def set_proxy_facts(facts): common['no_proxy'] = common['no_proxy'].split(",") elif 'no_proxy' not in common: common['no_proxy'] = [] + + # See https://bugzilla.redhat.com/show_bug.cgi?id=1466783 + # masters behind a proxy need to connect to etcd via IP + if 'no_proxy_etcd_host_ips' in common: + if isinstance(common['no_proxy_etcd_host_ips'], string_types): + common['no_proxy'].extend(common['no_proxy_etcd_host_ips'].split(',')) + if 'generate_no_proxy_hosts' in common and safe_get_bool(common['generate_no_proxy_hosts']): if 'no_proxy_internal_hostnames' in common: common['no_proxy'].extend(common['no_proxy_internal_hostnames'].split(',')) diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml index 9b7125240..c643c6c46 100644 --- a/roles/openshift_master/tasks/main.yml +++ b/roles/openshift_master/tasks/main.yml @@ -140,6 +140,12 @@ - set_fact: openshift_push_via_dns: "{{ (openshift_use_dnsmasq | default(true) and openshift.common.version_gte_3_6) or (already_set.stdout | match('OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000')) }}" +- name: Set fact of all etcd host IPs + openshift_facts: + role: common + local_facts: + no_proxy_etcd_host_ips: "{{ openshift_no_proxy_etcd_host_ips }}" + - name: Install the systemd units include: systemd_units.yml |