Merge pull request #9977 from Security-Onion-Solutions/TOoSmOotH-patch-7

Update so-minion
This commit is contained in:
Mike Reeves
2023-03-21 15:50:52 -04:00
committed by GitHub

View File

@@ -206,6 +206,12 @@ function add_sensor_to_minion() {
echo " enabled: True" >> $PILLARFILE
}
function updateMine() {
salt "$MINION_ID" mine.send network.ip_addrs interface="$MNIC"
}
function apply_ES_state() {
salt-call state.apply elasticsearch concurrent=True
}
function createEVAL() {
add_elastic_to_minion
add_logstash_to_minion
@@ -245,6 +251,8 @@ function createSENSOR() {
function createSEARCHNODE() {
add_elastic_to_minion
add_logstash_to_minion
updateMine
apply_ES_state
}
function createSTANDALONE() {