Code Review
/
salt-formulas
/
elasticsearch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
c5fbb9f
)
Allow defining minimum master nodes
author
Filip Pytloun
<filip@pytloun.cz>
Tue, 28 Jun 2016 19:49:00 +0000
(21:49 +0200)
committer
Filip Pytloun
<filip@pytloun.cz>
Tue, 28 Jun 2016 19:49:30 +0000
(21:49 +0200)
elasticsearch/files/elasticsearch.yml
patch
|
blob
|
history
diff --git
a/elasticsearch/files/elasticsearch.yml
b/elasticsearch/files/elasticsearch.yml
index fcea2a99407b472bfb99b96642d8e6ab38452cc9..268b46c26ed991bb857fba58ad17cbe4f6bc8055 100644
(file)
--- a/
elasticsearch/files/elasticsearch.yml
+++ b/
elasticsearch/files/elasticsearch.yml
@@
-312,7
+312,7
@@
network.publish_host: {{ server.publish_host }}
# operational within the cluster. Its recommended to set it to a higher value
# than 1 when running more than 2 nodes in the cluster.
#
# operational within the cluster. Its recommended to set it to a higher value
# than 1 when running more than 2 nodes in the cluster.
#
-# discovery.zen.minimum_master_nodes: 1
+discovery.zen.minimum_master_nodes: {{ server.get('cluster', {}).minimum_master_nodes|default(1) }}
# Set the time to wait for ping responses from other nodes when discovering.
# Set this option to a higher value on a slow or congested network
# Set the time to wait for ping responses from other nodes when discovering.
# Set this option to a higher value on a slow or congested network