Merge pull request #252 from wazuh/dynamic-instances.yml

Support both IP and DNS when creating elastic cluster
This commit is contained in:
Manuel J. Bernal 2019-09-26 16:49:52 +02:00 committed by GitHub
commit 9025bdf3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,14 @@
{% if node_certs_generator %}
instances:
{% for (key,value) in instances.iteritems() %}
{% 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 %}