From 95367f8d236102e7c0bcd5738158022231dcaf3e Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 11 Aug 2020 12:00:58 -0400 Subject: [PATCH] Fix cross cluster --- salt/utility/bin/crossthestreams | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utility/bin/crossthestreams b/salt/utility/bin/crossthestreams index 9c398ae6d..a057e261b 100644 --- a/salt/utility/bin/crossthestreams +++ b/salt/utility/bin/crossthestreams @@ -38,7 +38,7 @@ echo "Applying cross cluster search config..." {%- if salt['pillar.get']('nodestab', {}) %} {%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %} {%- if FEATURES is sameas true %} -curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN.split('_')|first }}": {"skip_unavailable": "true", "seeds": ["{{ SN }}:9300"]}}}}}' +curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN }}": {"skip_unavailable": "true", "seeds": ["{{ SN.split('_')|first }}:9300"]}}}}}' {%- else %} curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN }}": {"skip_unavailable": "true", "seeds": ["{{ SNDATA.ip }}:9300"]}}}}}' {%- endif %}