forked from ungleich-public/cdist
__cdist_echo++
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
e3f27f1794
commit
290915ee64
2 changed files with 4 additions and 4 deletions
|
@ -32,6 +32,6 @@ __cdist_ddir="$(__cdist_host_cache_dir "$__cdist_target_host")"
|
||||||
# Create base to move into
|
# Create base to move into
|
||||||
mkdir -p "$(__cdist_cache_dir)"
|
mkdir -p "$(__cdist_cache_dir)"
|
||||||
|
|
||||||
echo "Saving cache to $__cdist_ddir ..."
|
__cdist_echo info "Saving cache to $__cdist_ddir ..."
|
||||||
rm -rf "$__cdist_ddir"
|
rm -rf "$__cdist_ddir"
|
||||||
mv "$__cdist_local_base_dir" "$__cdist_ddir"
|
mv "$__cdist_local_base_dir" "$__cdist_ddir"
|
||||||
|
|
|
@ -34,7 +34,7 @@ export $__cdist_name_var_target_user="$__cdist_remote_user"
|
||||||
# Export variables for core, which others do not reset
|
# Export variables for core, which others do not reset
|
||||||
export __cdist_local_base_dir
|
export __cdist_local_base_dir
|
||||||
|
|
||||||
echo "cdist $__cdist_version: Configuring $__cdist_target_host"
|
__cdist_echo info "cdist $__cdist_version: Configuring $__cdist_target_host ..."
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# See cdist-stages(7)
|
# See cdist-stages(7)
|
||||||
|
@ -44,7 +44,7 @@ echo "cdist $__cdist_version: Configuring $__cdist_target_host"
|
||||||
__cdist_init_deploy "$__cdist_target_host"
|
__cdist_init_deploy "$__cdist_target_host"
|
||||||
|
|
||||||
# Transfer cdist executables
|
# Transfer cdist executables
|
||||||
echo "Transferring cdist binaries to $__cdist_target_host ..."
|
__cdist_echo info "Transferring cdist binaries to the target host ..."
|
||||||
cdist-dir push "$__cdist_target_host" \
|
cdist-dir push "$__cdist_target_host" \
|
||||||
"${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
|
"${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
|
||||||
cdist-explorer-run-global "$__cdist_target_host"
|
cdist-explorer-run-global "$__cdist_target_host"
|
||||||
|
@ -53,4 +53,4 @@ cdist-object-all "$__cdist_target_host" cdist-object-prepare
|
||||||
cdist-object-all "$__cdist_target_host" cdist-object-run
|
cdist-object-all "$__cdist_target_host" cdist-object-run
|
||||||
cdist-cache "$__cdist_target_host"
|
cdist-cache "$__cdist_target_host"
|
||||||
|
|
||||||
echo "cdist $__cdist_version: Successfully finished run on $__cdist_target_host"
|
__cdist_echo info "cdist $__cdist_version: Successfully finished run"
|
||||||
|
|
Loading…
Reference in a new issue