Merge pull request #252 from wazuh/dynamic-instances.yml
Support both IP and DNS when creating elastic cluster
This commit is contained in:
commit
9025bdf3be
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user