Use commas in no_proxy (#1782)
This commit is contained in:
@ -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 ('') }}"
|
||||||
|
Reference in New Issue
Block a user