inherit log level from cdist install during nested cdist config

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2017-08-24 14:43:26 +02:00
parent f368539447
commit 4851c0517f
1 changed files with 14 additions and 2 deletions

View File

@ -23,8 +23,20 @@ remote_exec="$__type/files/remote/exec"
remote_copy="$__type/files/remote/copy"
cdist_args=""
[ "$__verbose" = "yes" ] && cdist_args="-vv"
[ "$__debug" = "yes" ] && cdist_args="-d"
case "$__cdist_loglevel" in
20)
cdist_args="-v"
;;
15)
cdist_args="-vv"
;;
10)
cdist_args="-vvv"
;;
5)
cdist_args="-vvvv"
;;
esac
cat << DONE
cdist config \