Update soup

This commit is contained in:
Mike Reeves
2020-08-19 18:51:32 -04:00
committed by GitHub
parent 0439cf3205
commit 8312221c82

View File

@@ -155,7 +155,7 @@ pillar_changes() {
local EHOSTNAME=$(echo $p | awk -F"_" '{print $1}')
local IP=$(echo $p | awk '{print $2}')
echo "Adding the new cross cluster config for $NAME"
curl -XPUT http://localhost:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"'$NAME'/'$IP'": {"skip_unavailable": "true", "seeds": ["'$EHOSTNAME':9300"]}}}}}'
curl -XPUT http://localhost:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"'$NAME'": {"skip_unavailable": "true", "seeds": ["'$EHOSTNAME':9300"]}}}}}'
done </tmp/nodes.txt