Commit 2c2a39d9 authored by harshavardhanc's avatar harshavardhanc
Browse files

Issue #00 fix: adding discovery.zen.minimum_master_nodes variable

parent ac0996cd
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
......@@ -7,6 +7,12 @@
cluster.name: elasticsearch
{% endif %}
{% if (groups['composite-search-cluster']|length) == 1 %}
discovery.zen.minimum_master_nodes: 1
{% else %}
discovery.zen.minimum_master_nodes: "{{ ((groups['composite-search-cluster']|length) / 2 +1) | round(0, 'ceil') | int}}"
{% endif %}
{% if es_config['node.name'] is not defined %}
node.name: {{inventory_hostname}}-{{es_instance_name}}
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment