Browse Source

azure: add metadata server IP to no_proxy list

Michal Fojtik 7 years ago
parent
commit
1c5e7e743c
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

@@ -1145,6 +1145,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
             common['no_proxy'].append('.' + common['dns_domain'])
             common['no_proxy'].append('.svc')