From 1614b70853ea4a4c7820a4b16fb4639eea5475b1 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 15 Sep 2021 13:45:43 -0400 Subject: [PATCH] update cluster name if true cluster --- salt/elasticsearch/config.map.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/elasticsearch/config.map.jinja b/salt/elasticsearch/config.map.jinja index 3f39a9aa3..2c62a0a71 100644 --- a/salt/elasticsearch/config.map.jinja +++ b/salt/elasticsearch/config.map.jinja @@ -10,10 +10,10 @@ {% endif %} {% if salt['pillar.get']('elasticsearch:true_cluster', False) %} + {% do ESCONFIG.elasticsearch.cluster_settings.cluster.update({'name': salt['pillar.get']('elasticsearch:true_cluster_name')}) %} {# this is temporary #} {% if grains.id.split('_') | last in ['manager','managersearch'] %} {% if salt['pillar.get']('nodestab', {}) %} {% do ESCONFIG.elasticsearch.cluster_settings.node.roles.extend(['master', 'data', 'remote_cluster_client']) %} -node.roles: [ master, data, remote_cluster_client ] {% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(grains.master) %} {% for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %} {% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(SN.split('_')|first) %}