diff --git a/bin/cdist-deploy-to b/bin/cdist-deploy-to index 97538d1f..50bb48b8 100755 --- a/bin/cdist-deploy-to +++ b/bin/cdist-deploy-to @@ -31,10 +31,8 @@ __cdist_target_host="$1" # See cdist-stages(7) # -# Transfer core helpers plus cdist-config -cdist-dir push "$__cdist_target_host" "${__cdist_helper_dir}" "${__cdist_remote_helper_dir}" -scp "$(which cdist-config)" \ - "${__cdist_remote_user}@${__cdist_target_host}:${__cdist_remote_helper_dir}" +# Transfer cdist "binaries" +cdist-bin-transfer "$__cdist_target_host" "${__cdist_remote_bin_dir}" # Execute explorer cdist-explorer-run-init "$__cdist_target_host" "$__cdist_out_explorer_dir" diff --git a/bin/cdist-explorer-run b/bin/cdist-explorer-run index e558015e..fde3512c 100755 --- a/bin/cdist-explorer-run +++ b/bin/cdist-explorer-run @@ -23,8 +23,8 @@ . cdist-config -if [ $# -lt 3 ]; then - __cdist_usage " [explorer args]" +if [ $# -lt 4 ]; then + __cdist_usage " [explorer args]" fi set -ue diff --git a/bin/cdist-remote-explorer-run b/bin/cdist-remote-explorer-run index a04b0057..5dbea39c 100755 --- a/bin/cdist-remote-explorer-run +++ b/bin/cdist-remote-explorer-run @@ -18,6 +18,8 @@ # along with cdist. If not, see . # # +# This binary is executed on the remote side to execute explorers +# . cdist-config if [ $# -lt 3 ]; then