mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Update so-minion
This commit is contained in:
@@ -206,8 +206,11 @@ function add_sensor_to_minion() {
|
|||||||
echo " enabled: True" >> $PILLARFILE
|
echo " enabled: True" >> $PILLARFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateMine() {
|
||||||
|
salt "$MINION_ID" mine.send network.ip_addrs interface="$MNIC"
|
||||||
|
}
|
||||||
function apply_ES_state() {
|
function apply_ES_state() {
|
||||||
salt-call state.apply elasticsearch --queue=True
|
salt-call state.apply elasticsearch concurrent=True
|
||||||
}
|
}
|
||||||
function createEVAL() {
|
function createEVAL() {
|
||||||
add_elastic_to_minion
|
add_elastic_to_minion
|
||||||
@@ -248,7 +251,8 @@ function createSENSOR() {
|
|||||||
function createSEARCHNODE() {
|
function createSEARCHNODE() {
|
||||||
add_elastic_to_minion
|
add_elastic_to_minion
|
||||||
add_logstash_to_minion
|
add_logstash_to_minion
|
||||||
applyElasticState
|
updateMine
|
||||||
|
apply_ES_state
|
||||||
}
|
}
|
||||||
|
|
||||||
function createSTANDALONE() {
|
function createSTANDALONE() {
|
||||||
|
|||||||
Reference in New Issue
Block a user