Support both IP and DNS when creating elastic cluster
This commit is contained in:
parent
e4ad96a18f
commit
47b16b3c20
@ -4,10 +4,14 @@
|
||||
|
||||
{% if node_certs_generator %}
|
||||
instances:
|
||||
{% for (key,value) in instances.iteritems() %}
|
||||
- name: "{{ value.name }}"
|
||||
{% for (key,value) in instances.items() %}
|
||||
- name: "{{ value.name }}"
|
||||
{% if value.ip %}
|
||||
ip:
|
||||
- "{{ value.ip }}"
|
||||
{% endfor %}
|
||||
|
||||
{% elif value.dns %}
|
||||
dns:
|
||||
- "{{ value.dns }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user