forked from ungleich-public/cdist
beautify output
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f75f2a0de5
commit
8bb3a5b416
4 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ __cdist_usage()
|
||||||
|
|
||||||
__cdist_init_deploy()
|
__cdist_init_deploy()
|
||||||
{
|
{
|
||||||
echo "Creating clean directory structur ..."
|
echo "Creating clean directory structure ..."
|
||||||
|
|
||||||
# Ensure there is no old stuff, neither local nor remote
|
# Ensure there is no old stuff, neither local nor remote
|
||||||
rm -rf "$__cdist_local_base_dir"
|
rm -rf "$__cdist_local_base_dir"
|
||||||
|
|
|
@ -31,4 +31,5 @@ __cdist_output_dir="$1"; shift
|
||||||
|
|
||||||
eval export $__cdist_name_var_manifest=\"\$__cdist_manifest_dir\"
|
eval export $__cdist_name_var_manifest=\"\$__cdist_manifest_dir\"
|
||||||
|
|
||||||
|
echo "Running initial manifest for $__cdist_target_host ..."
|
||||||
cdist-manifest-run "$__cdist_target_host" "$__cdist_manifest_init" "$__cdist_output_dir"
|
cdist-manifest-run "$__cdist_target_host" "$__cdist_manifest_init" "$__cdist_output_dir"
|
||||||
|
|
|
@ -37,7 +37,7 @@ __cdist_object_list "$__cdist_object_base_dir" > "$__cdist_tmp_file"
|
||||||
|
|
||||||
while read object; do
|
while read object; do
|
||||||
code="$(__cdist_object_code "$object")"
|
code="$(__cdist_object_code "$object")"
|
||||||
echo "Generating code for $object ..."
|
echo "Generating code for $object ..."
|
||||||
|
|
||||||
cdist-object-codegen "$__cdist_target_host" \
|
cdist-object-codegen "$__cdist_target_host" \
|
||||||
"$__cdist_object_base_dir" \
|
"$__cdist_object_base_dir" \
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# This is debug and should not be in a production environment
|
# This is debug and should not be in a production environment
|
||||||
echo "Running initial manifest for $__target_host"
|
|
||||||
echo "We could access other manifests in $__manifest"
|
echo "We could access other manifests in $__manifest"
|
||||||
|
|
||||||
__file /etc/cdist-configured --type file
|
__file /etc/cdist-configured --type file
|
||||||
|
|
Loading…
Reference in a new issue