move custom es cluster name pillar location

This commit is contained in:
m0duspwnens committed 2021-09-17 15:29:41 -04:00
1 parent e864bc5404
commit 109c83d8c3
1 file changed
+1 -2
+1 -2
View File
@@ -10,8 +10,7 @@
{% endif %}
{% if salt['pillar.get']('elasticsearch:true_cluster', False) %}
{% do ESCONFIG.elasticsearch.config.cluster.update({'name': salt['pillar.get']('elasticsearch:true_cluster_name')}) %} {# this is temporary #}
{% if grains.id.split('_') | last in ['manager','managersearch'] %}
{% if grains.id.split('_') | last in ['manager','managersearch'] %}
{% if salt['pillar.get']('nodestab', {}) %}
{% do ESCONFIG.elasticsearch.config.node.update({'roles': ['master', 'data', 'remote_cluster_client']}) %}
{% do ESCONFIG.elasticsearch.config.update({'discovery': {'seed_hosts': [grains.master]}}) %}