Explorar o código

feat(script): Add the 'debug' option on 'run_policy.sh'

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO %!s(int64=2) %!d(string=hai) anos
pai
achega
d7757faa9d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      scripts/run_policy.sh

+ 4 - 2
scripts/run_policy.sh

@@ -5,8 +5,10 @@
 ./scripts/export_policy.sh
 pushd policy-export > /dev/null
 if [ "$1" = "dry" ]; then
-	DRY="--why-run"
+	OPT="--why-run"
+elif [ "$1" = "debug" ]; then
+	OPT="--log_level debug"
 fi
-bundle exec chef-client --chef-license 'accept' -z ${DRY}
+bundle exec chef-client --chef-license 'accept' -z ${OPT}
 popd > /dev/null
 ./scripts/end_run.sh