Skip to content
Snippets Groups Projects
Commit 3ee91e15 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Use commas in no_proxy (#1782)

parent ef47a733
No related branches found
No related tags found
No related merge requests found
...@@ -164,20 +164,19 @@ vault_secrets_dir: "{{ vault_base_dir }}/secrets" ...@@ -164,20 +164,19 @@ vault_secrets_dir: "{{ vault_base_dir }}/secrets"
## Set no_proxy to all assigned cluster IPs and hostnames ## Set no_proxy to all assigned cluster IPs and hostnames
no_proxy: >- no_proxy: >-
127.0.0.1 {%- if loadbalancer_apiserver is defined -%}
localhost {{ apiserver_loadbalancer_domain_name| default('') }},
{% if loadbalancer_apiserver is defined %} {{ loadbalancer_apiserver.address | default('') }},
{{ apiserver_loadbalancer_domain_name| default('') }} {%- endif -%}
{{ loadbalancer_apiserver.address | default('') }} {%- for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}
{% endif %} {{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }},
{% for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%} {%- if (item != hostvars[item]['ansible_hostname']) -%}
{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }} {{ hostvars[item]['ansible_hostname'] }},
{% if (item != hostvars[item]['ansible_hostname']) %} {{ hostvars[item]['ansible_hostname'] }} {{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }},
{{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }} {%- endif -%}
{% endif %} {{ item }},{{ item }}.{{ dns_domain }},
{{ item }} {%- endfor -%}
{{ item }}.{{ dns_domain }} 127.0.0.1,localhost
{% endfor %}
proxy_env: proxy_env:
http_proxy: "{{ http_proxy| default ('') }}" http_proxy: "{{ http_proxy| default ('') }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment