mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 14:36:20 -02:30
fix: ansible 2.19: etcd_events_address final evaluation list (#13498)
This commit is contained in:
@@ -700,12 +700,11 @@ etcd_access_addresses: |-
|
|||||||
{% for item in etcd_hosts -%}
|
{% for item in etcd_hosts -%}
|
||||||
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:2379{% if not loop.last %},{% endif %}
|
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:2379{% if not loop.last %},{% endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
etcd_events_access_addresses_list: |-
|
etcd_events_access_addresses_list: "{{
|
||||||
[
|
['https://'] | product(
|
||||||
{% for item in etcd_hosts -%}
|
etcd_hosts | map('extract', hostvars, morekeys='main_access_ip') | map('ansible.utils.ipwrap'),
|
||||||
'https://{{ hostvars[item].main_access_ip | ansible.utils.ipwrap }}:2383'{% if not loop.last %},{% endif %}
|
[':2383'])
|
||||||
{%- endfor %}
|
| map('join') }}"
|
||||||
]
|
|
||||||
etcd_metrics_addresses: |-
|
etcd_metrics_addresses: |-
|
||||||
{% for item in etcd_hosts -%}
|
{% for item in etcd_hosts -%}
|
||||||
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:{{ etcd_metrics_port | default(2381) }}{% if not loop.last %},{% endif %}
|
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:{{ etcd_metrics_port | default(2381) }}{% if not loop.last %},{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user