update salt mine after salt-master restarts

This commit is contained in:
m0duspwnens
2024-02-07 13:05:45 -05:00
parent f97d0f2f36
commit e42e07b245

View File

@@ -947,9 +947,6 @@ main() {
systemctl_func "stop" "$cron_service_name"
# update mine items prior to stopping salt-minion and salt-master
update_salt_mine
echo "Updating dockers to $NEWVERSION."
if [[ $is_airgap -eq 0 ]]; then
airgap_update_dockers
@@ -1025,6 +1022,9 @@ main() {
salt-call state.apply salt.minion -l info queue=True
echo ""
# ensure the mine is updated and populated before highstates run, following the salt-master restart
update_salt_mine
enable_highstate
echo ""