Remove unneeded elastic upgrade config

This commit is contained in:
DefensiveDepth
2024-08-19 16:05:27 -04:00
parent e772497e12
commit df6ff027b5

View File

@@ -453,8 +453,6 @@ post_to_2.4.20() {
} }
post_to_2.4.30() { post_to_2.4.30() {
echo "Regenerating Elastic Agent Installers"
/sbin/so-elastic-agent-gen-installers
# there is an occasional error with this state: pki_public_ca_crt: TypeError: list indices must be integers or slices, not str # there is an occasional error with this state: pki_public_ca_crt: TypeError: list indices must be integers or slices, not str
set +e set +e
salt-call state.apply ca queue=True salt-call state.apply ca queue=True
@@ -479,8 +477,7 @@ post_to_2.4.50() {
} }
post_to_2.4.60() { post_to_2.4.60() {
echo "Regenerating Elastic Agent Installers..." echo "Nothing to apply"
so-elastic-agent-gen-installers
POSTVERSION=2.4.60 POSTVERSION=2.4.60
} }
@@ -507,7 +504,8 @@ post_to_2.4.90() {
} }
post_to_2.4.100() { post_to_2.4.100() {
echo "Nothing to apply" echo "Regenerating Elastic Agent Installers"
/sbin/so-elastic-agent-gen-installers
POSTVERSION=2.4.100 POSTVERSION=2.4.100
} }
@@ -587,18 +585,7 @@ up_to_2.4.20() {
} }
up_to_2.4.30() { up_to_2.4.30() {
echo "Nothing to do for 2.4.30"
# Remove older defend integration json & installed integration
rm -f /opt/so/conf/elastic-fleet/integrations/endpoints-initial/elastic-defend-endpoints.json
. $UPDATE_DIR/salt/elasticfleet/tools/sbin/so-elastic-fleet-common
elastic_fleet_integration_remove endpoints-initial elastic-defend-endpoints
rm -f /opt/so/state/eaintegrations.txt
# Elastic Update for this release, so download Elastic Agent files
determine_elastic_agent_upgrade
rm -f /opt/so/state/estemplates*.txt
INSTALLEDVERSION=2.4.30 INSTALLEDVERSION=2.4.30
} }