include eval and import in so-elasticsearch-cluster-settings

This commit is contained in:
m0duspwnens
2023-06-22 13:12:47 -04:00
parent 6c4c815683
commit 19469205e1

View File

@@ -34,7 +34,7 @@ if [ "$ELASTICSEARCH_CONNECTED" == "no" ]; then
exit
fi
{%- if GLOBALS.role in [ 'so-manager', 'so-managersearch', 'so-standalone'] %}
{%- if GLOBALS.role in GLOBALS.manager_roles %}
echo "Applying cross cluster search config..."
so-elasticsearch-query _cluster/settings -d "{\"persistent\": {\"cluster\": {\"remote\": {\"{{ GLOBALS.manager }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}" -XPUT
{%- if node_data['heavynode'] is defined %}