|
@@ -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
|