mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
apply es and soc states to manager if new search or hn are added
This commit is contained in:
@@ -631,8 +631,15 @@ if [[ "$OPERATION" == 'add' || "$OPERATION" == 'setup' ]]; then
|
|||||||
# and they need to wait for ca creation to update the mine
|
# and they need to wait for ca creation to update the mine
|
||||||
updateMine
|
updateMine
|
||||||
checkMine "network.ip_addrs"
|
checkMine "network.ip_addrs"
|
||||||
|
# apply the elasticsearch state to the manager if a new searchnode was added
|
||||||
|
if [[ "$NODETYPE" == "SEARCHNODE" || "$NODETYPE" == "HEAVYNODE" ]]; then
|
||||||
|
# calls so-common and set_minionid sets MINIONID to local minion id
|
||||||
|
set_minionid
|
||||||
|
salt $MINIONID state.apply elasticsearch queue=True --async
|
||||||
|
salt $MINIONID state.apply soc queue=True --async
|
||||||
|
fi
|
||||||
# run this async so the cli doesn't wait for a return
|
# run this async so the cli doesn't wait for a return
|
||||||
salt "$MINION_ID" state.highstate --async
|
salt "$MINION_ID" state.highstate --async queue=True
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user