export __target_host

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-24 15:05:31 +01:00
parent 212260b46d
commit 93253f7fda
2 changed files with 7 additions and 4 deletions

View file

@ -39,12 +39,13 @@ set -u
: ${__cdist_name_manifest_dir:=manifests}
: ${__cdist_name_out_dir:=out}
: ${__cdist_name_conf_dir:=conf}
: ${__cdist_name_target_host:=target_host}
: ${__cdist_name_type_bin:=type_bin}
# Exported variable names (usable for non core)
: ${__cdist_name_var_explorer:=__$__cdist_name_explorer}
: ${__cdist_name_var_manifest:=__$__cdist_name_manifest_dir}
: ${__cdist_name_var_target_host:=__$__cdist_name_target_host}
# Name of the base directory containing the initial manifests
: ${__cdist_name_manifests:=manifests}

View file

@ -27,6 +27,9 @@ set -eu
__cdist_target_host="$1"
# Make target host available for non-core
export $__cdist_name_var_target_host=\"\$__cdist_target_host\"
################################################################################
# See cdist-stages(7)
#
@ -43,12 +46,11 @@ cdist-bin-transfer "$__cdist_target_host" "$__cdist_remote_bin_dir"
# Execute general explorers
cdist-explorer-run-init "$__cdist_target_host" "$__cdist_out_explorer_dir"
exit 2
# Create initial object base
cdist-manifest-run-init "$__cdist_target_host" "$__cdist_out_object_dir"
exit 2
# Create dependent objects - BUG: does not abort on error in manifest!!!!
cdist-manifest-run-all "$__cdist_target_host" "$__cdist_out_object_dir"