Update soup

This commit is contained in:
Mike Reeves
2023-11-21 09:55:44 -05:00
committed by GitHub
parent 4b0033c60a
commit 14b5aa476e

View File

@@ -455,6 +455,8 @@ post_to_2.4.30() {
mv /etc/pki/managerssl.crt /etc/pki/managerssl.crt.old
mv /etc/pki/managerssl.key /etc/pki/managerssl.key.old
systemctl_func "start" "salt-minion"
salt-call state.apply nginx queue=True
enable_highstate
POSTVERSION=2.4.30
}
@@ -751,6 +753,11 @@ apply_hotfix() {
elastic_fleet_integration_remove endpoints-initial elastic-defend-endpoints
/usr/sbin/so-elastic-fleet-integration-policy-elastic-defend
elif [[ "$INSTALLEDVERSION" == "2.4.30" ]] ; then
if [[ -f /etc/pki/managerssl.key.old ]]; then
echo "Fixing 20231117 not enabling highstate"
enable_highstate
salt-call state.highstate queue=True
else
rm -f /opt/so/conf/elastic-fleet/integrations/endpoints-initial/elastic-defend-endpoints.json
so-kibana-restart --force
so-kibana-api-check
@@ -763,8 +770,10 @@ apply_hotfix() {
mv /etc/pki/managerssl.crt /etc/pki/managerssl.crt.old
mv /etc/pki/managerssl.key /etc/pki/managerssl.key.old
systemctl_func "start" "salt-minion"
enable_highstate
echo "Applying Salt Highstate"
salt-call state.highstate queue=True
fi
else
echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
fi