From 827ed7b273cf2a9180fa94e7cd398a2e178dbfcb Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 29 Sep 2023 17:08:42 -0400 Subject: [PATCH] run salt.mine_function state locally and provide pillar info to it --- setup/so-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index eab7a4add..b55ae0def 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -649,7 +649,8 @@ configure_minion() { "log_level_logfile: info"\ "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";