Skip to content

Commit 2be6d0f

Browse files
authored
Merge pull request #25 from zerothabhishek/log-level
Change log level for salt-call in provision script
2 parents 9da66f8 + 161925a commit 2be6d0f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

provision

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ git archive --remote=ssh://$PILLAR_GIT_URL --format=tgz master | tar xvz -C /opt
2727
mkdir -p /srv
2828
ln -sf /opt/magudi/salt/roots /srv/salt
2929
ln -sf /opt/pillar /srv/pillar
30-
salt-call --local state.highstate -l debug
30+
31+
if [ "$1" = "--debug" ]; then
32+
LOG_LEVEL="debug"
33+
else
34+
LOG_LEVEL="warning" # The default
35+
fi
36+
37+
salt-call --local state.highstate -l $LOG_LEVEL
3138

3239
# Ensure that next run will have the updated version
3340
# of the this file. Self updating!!!

0 commit comments

Comments
 (0)