From 06ce87a289b5d181881642b2c37ef2f49604a84a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 24 Feb 2011 10:06:56 +0100 Subject: [PATCH] begin to cleanup bin/cdist-object-explorer-all Signed-off-by: Nico Schottelius --- bin/cdist-deploy-to | 4 +++- bin/cdist-object-explorer-all | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/bin/cdist-deploy-to b/bin/cdist-deploy-to index c4fb2289..88b7aaf9 100755 --- a/bin/cdist-deploy-to +++ b/bin/cdist-deploy-to @@ -49,9 +49,11 @@ cdist-manifest-init "$__cdist_target_host" "$__cdist_out_object_dir" # Create dependent objects - BUG: does not abort on error in manifest!!!! cdist-manifest-run-all "$__cdist_target_host" "$__cdist_out_object_dir" +# Run explorer of each type for every object of types with explorer +cdist-object-explorer-all "$__cdist_target_host" "$__cdist_out_object_dir" + exit 2 -cdist-object-explorer-all "$__cdist_target_host" "$__cdist_out_object_dir" cdist-object-codegen-all "$__cdist_target_host" "$__cdist_out_object_dir" "$__cdist_out_execs" cdist-exec-transfer "$__cdist_target_host" "$__cdist_out_execs" cdist-exec-run "$__cdist_target_host" diff --git a/bin/cdist-object-explorer-all b/bin/cdist-object-explorer-all index cd4fee6f..45628f4a 100755 --- a/bin/cdist-object-explorer-all +++ b/bin/cdist-object-explorer-all @@ -28,6 +28,23 @@ set -eu __cdist_target_host="$1"; shift __cdist_object_base_dir="$1"; shift +################################################################################ +# New code +# + +# Get listing of objects + +# Get listing of types used + +# For every type that has explorers, Transfer the explorers + +# For every object of a type that has explorers, execute the explorers +# and retrieve the results + +################################################################################ +# Old code +# + __cdist_object_list "$__cdist_object_base_dir" > "$__cdist_tmp_file" # need to create pseudo array, as ssh in cdist-explorer-run will destroy while-read loops