Browse Source

Merge pull request #8203 from mfojtik/azure-01-add-metadata-server-noproxy

azure: add metadata server IP to no_proxy list
Scott Dodson 7 years ago
parent
commit
3fdbfd5b8b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roles/openshift_facts/library/openshift_facts.py

+ 2 - 0
roles/openshift_facts/library/openshift_facts.py

@@ -864,6 +864,8 @@ def set_proxy_facts(facts):
             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(','))
+            # TODO: This is Azure specific and should be scoped out to only Azure installs
+            common['no_proxy'].append('169.254.169.254')
             # We always add local dns domain and ourselves no matter what
             kube_svc_ip = str(ipaddress.ip_network(text_type(common['portal_net']))[1])
             common['no_proxy'].append(kube_svc_ip)