mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
run salt.mine_function state locally and provide pillar info to it
This commit is contained in:
@@ -649,7 +649,8 @@ configure_minion() {
|
|||||||
"log_level_logfile: info"\
|
"log_level_logfile: info"\
|
||||||
"log_file: /opt/so/log/salt/minion" >> "$minion_config"
|
"log_file: /opt/so/log/salt/minion" >> "$minion_config"
|
||||||
|
|
||||||
logCmd "salt-call state.apply salt.mine_functions -l info"
|
info "Running: salt-call state.apply salt.mine_functions --local --file-root=../salt/ -l info pillar='{"host": {"mainint": "$MNIC"}}'"
|
||||||
|
salt-call state.apply salt.mine_functions --local --file-root=../salt/ -l info pillar="{'host': {'mainint': $MNIC}}"
|
||||||
|
|
||||||
{
|
{
|
||||||
logCmd "systemctl enable salt-minion";
|
logCmd "systemctl enable salt-minion";
|
||||||
|
|||||||
Reference in New Issue
Block a user