begin to cleanup bin/cdist-object-explorer-all

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-24 10:06:56 +01:00
parent 6e6643d9d1
commit 06ce87a289
2 changed files with 20 additions and 1 deletions

View file

@ -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!!!! # Create dependent objects - BUG: does not abort on error in manifest!!!!
cdist-manifest-run-all "$__cdist_target_host" "$__cdist_out_object_dir" 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 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-object-codegen-all "$__cdist_target_host" "$__cdist_out_object_dir" "$__cdist_out_execs"
cdist-exec-transfer "$__cdist_target_host" "$__cdist_out_execs" cdist-exec-transfer "$__cdist_target_host" "$__cdist_out_execs"
cdist-exec-run "$__cdist_target_host" cdist-exec-run "$__cdist_target_host"

View file

@ -28,6 +28,23 @@ set -eu
__cdist_target_host="$1"; shift __cdist_target_host="$1"; shift
__cdist_object_base_dir="$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" __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 # need to create pseudo array, as ssh in cdist-explorer-run will destroy while-read loops