Merge pull request #668 from bodepd/etcd_access_address

Use etcd host ip instead of hostname to build etcd_access_addresses
pull/653/merge
Matthew Mosesohn 2016-12-09 07:54:12 +03:00 committed by GitHub
commit a80745b5bd
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
- set_fact:
etcd_access_addresses: |-
{% for item in groups['etcd'] -%}
https://{{ item }}:2379{% if not loop.last %},{% endif %}
https://{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }}:2379{% if not loop.last %},{% endif %}
{%- endfor %}
- set_fact: etcd_access_endpoint="{% if etcd_multiaccess %}{{ etcd_access_addresses }}{% else %}{{ etcd_endpoint }}{% endif %}"
- set_fact: