Force regen of ssl cert

This commit is contained in:
Josh Brower
2022-03-10 08:47:26 -05:00
parent 7ca06df66f
commit 814e16ba95

View File

@@ -919,6 +919,9 @@ echo "1" > /root/accept_changes
set_progress_str 77 "$(print_salt_state_apply 'fleet.event_update-custom-hostname')" set_progress_str 77 "$(print_salt_state_apply 'fleet.event_update-custom-hostname')"
pillar_override="{\"global\":{\"fleet_custom_hostname\": \"$FLEETCUSTOMHOSTNAME\"}}" pillar_override="{\"global\":{\"fleet_custom_hostname\": \"$FLEETCUSTOMHOSTNAME\"}}"
salt-call state.apply -l info fleet.event_update-custom-hostname pillar="$pillar_override" >> $setup_log 2>&1 salt-call state.apply -l info fleet.event_update-custom-hostname pillar="$pillar_override" >> $setup_log 2>&1
rm -f /etc/pki/managerssl.crt
salt-call state.apply -l info ssl >> $setup_log 2>&1
fi fi
set_progress_str 78 "$(print_salt_state_apply 'so-fleet-setup')" set_progress_str 78 "$(print_salt_state_apply 'so-fleet-setup')"