Soup Changes for True Clusters

This commit is contained in:
Mike Reeves
2021-09-21 09:55:49 -04:00
parent 2c8cbf0db1
commit ed28e4d000

View File

@@ -640,8 +640,8 @@ up_2.3.5X_to_2.3.80() {
if [[ "$tc" == "true" ]]; then
tcname=$(grep -w true_cluster_name /opt/so/saltstack/local/pillar/global.sls | awk -F: {'print $2'})
sed -i '/elasticsearch:/a \\ config: \n cluster: \n name: $tcname' /opt/so/saltstack/local/pillar/global.sls
sed -i ' true_cluster_name/d /opt/so/saltstack/local/pillar/global.sls'
else
sed -i '/ true_cluster_name/d' /opt/so/saltstack/local/pillar/global.sls
fi
INSTALLEDVERSION=2.3.80
}