Update so-minion

This commit is contained in:
Mike Reeves
2023-03-21 13:39:24 -04:00
committed by GitHub
parent 30fc74ac09
commit aeb6d47637

View File

@@ -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() {