mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Merge pull request #14535 from Security-Onion-Solutions/mineimp
ensure the highstate retry runs only once
This commit is contained in:
@@ -19,8 +19,11 @@ salt.master.mine_update_highstate.update_mine_all_minions:
|
|||||||
|
|
||||||
# Run highstate on the original minion
|
# Run highstate on the original minion
|
||||||
# we can use concurrent on this highstate because no other highstate would be running when this is called
|
# we can use concurrent on this highstate because no other highstate would be running when this is called
|
||||||
|
# this state will run onlyif there is not an instance of it already running
|
||||||
salt.master.mine_update_highstate.run_highstate_on_{{ MINION_ID }}:
|
salt.master.mine_update_highstate.run_highstate_on_{{ MINION_ID }}:
|
||||||
salt.state:
|
salt.state:
|
||||||
- tgt: {{ MINION_ID }}
|
- tgt: {{ MINION_ID }}
|
||||||
- highstate: True
|
- highstate: True
|
||||||
- concurrent: True
|
- concurrent: True
|
||||||
|
- onlyif:
|
||||||
|
- 'ps -ef | grep -v grep | grep "/usr/bin/salt-minion.*ProcessPayload.*jid=.*Minion._thread_return" | wc -l | grep -q "^0$"'
|
||||||
|
|||||||
Reference in New Issue
Block a user