mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Revert "change salt upgrade process"
This commit is contained in:
@@ -39,17 +39,11 @@ unhold_salt_packages:
|
|||||||
|
|
||||||
install_salt_minion:
|
install_salt_minion:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: /bin/sh -c '{{ UPGRADECOMMAND }}'
|
- name: |
|
||||||
|
exec 0>&- # close stdin
|
||||||
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
|
exec 1>&- # close stdout
|
||||||
start_minion:
|
exec 2>&- # close stderr
|
||||||
cmd.run:
|
nohup /bin/sh -c '{{ UPGRADECOMMAND }}' &
|
||||||
- name: nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
|
|
||||||
- require:
|
|
||||||
- cmd: install_salt_minion
|
|
||||||
- watch:
|
|
||||||
- cmd: install_salt_minion
|
|
||||||
- order: last
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user