Merge pull request #14771 from Security-Onion-Solutions/revert-14770-saltupgradechange

Revert "change salt upgrade process"
This commit is contained in:
Josh Patterson
2025-06-25 12:21:00 -04:00
committed by GitHub

View File

@@ -39,17 +39,11 @@ unhold_salt_packages:
install_salt_minion:
cmd.run:
- name: /bin/sh -c '{{ UPGRADECOMMAND }}'
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
start_minion:
cmd.run:
- name: nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
- require:
- cmd: install_salt_minion
- watch:
- cmd: install_salt_minion
- order: last
- name: |
exec 0>&- # close stdin
exec 1>&- # close stdout
exec 2>&- # close stderr
nohup /bin/sh -c '{{ UPGRADECOMMAND }}' &
{% endif %}