avoid exiting salt when ca state applied in post for 2.4.30

This commit is contained in:
m0duspwnens
2023-12-04 10:11:38 -05:00
parent 265cde5296
commit 38868af08a

View File

@@ -450,7 +450,10 @@ post_to_2.4.20() {
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
set +e
salt-call state.apply ca queue=True
set -e
stop_salt_minion
mv /etc/pki/managerssl.crt /etc/pki/managerssl.crt.old
mv /etc/pki/managerssl.key /etc/pki/managerssl.key.old