Get node master value for template. Rename cluster to discovery block.
This commit is contained in:
parent
ed9b411b63
commit
42fb6bf937
@ -15,10 +15,10 @@ cluster.initial_master_nodes:
|
|||||||
{% for item in elasticsearch_cluster_nodes %}
|
{% for item in elasticsearch_cluster_nodes %}
|
||||||
- {{ item }}
|
- {{ item }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif elasticsearch_master_candidate %}
|
{% else %}
|
||||||
node.master: true
|
node.master: {{ elasticsearch_master_candidate }}
|
||||||
discovery.seed_hosts:
|
discovery.seed_hosts:
|
||||||
{% for item in elasticsearch_cluster_nodes %}
|
{% for item in elasticsearch_discovery_nodes %}
|
||||||
- {{ item }}
|
- {{ item }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user