redirect and throw in bg

This commit is contained in:
m0duspwnens
2024-05-03 14:54:44 -04:00
parent 3d4fd59a15
commit bdf1b45a07
2 changed files with 1 additions and 16 deletions

View File

@@ -605,7 +605,7 @@ function updateMineAndApplyStates() {
# calls so-common and set_minionid sets MINIONID to local minion id
set_minionid
# $MINIONID is the minion id of the manager and $MINION_ID is the target node or the node being configured
salt-run state.orch orch.deploy_newnode pillar="{'setup': {'manager': $MINIONID, 'newnode': $MINION_ID }}"
salt-run state.orch orch.deploy_newnode pillar="{'setup': {'manager': $MINIONID, 'newnode': $MINION_ID }}" > /dev/null 2>&1 &
}
function setupMinionFiles() {

View File

@@ -21,9 +21,6 @@ manager_run_es_soc:
- elasticsearch
- soc
- queue: True
- retry:
attempts: 3
interval: 60
- require:
- salt: {{NEWNODE}}_update_mine
{% endif %}
@@ -33,15 +30,3 @@ manager_run_es_soc:
- tgt: {{ NEWNODE }}
- highstate: True
- queue: True
- retry:
attempts: 5
interval: 60
{{NEWNODE}}_set_highstate_cron:
salt.state:
- tgt: {{ NEWNODE }}
- sls:
- setup.highstate_cron
- queue: True
- onfail:
- salt: {{NEWNODE}}_run_highstate