mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
update salt mine after salt-master restarts
This commit is contained in:
@@ -947,9 +947,6 @@ main() {
|
|||||||
|
|
||||||
systemctl_func "stop" "$cron_service_name"
|
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."
|
echo "Updating dockers to $NEWVERSION."
|
||||||
if [[ $is_airgap -eq 0 ]]; then
|
if [[ $is_airgap -eq 0 ]]; then
|
||||||
airgap_update_dockers
|
airgap_update_dockers
|
||||||
@@ -1025,6 +1022,9 @@ main() {
|
|||||||
salt-call state.apply salt.minion -l info queue=True
|
salt-call state.apply salt.minion -l info queue=True
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
# ensure the mine is updated and populated before highstates run, following the salt-master restart
|
||||||
|
update_salt_mine
|
||||||
|
|
||||||
enable_highstate
|
enable_highstate
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user