export __target_host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
212260b46d
commit
93253f7fda
2 changed files with 7 additions and 4 deletions
|
@ -39,12 +39,13 @@ set -u
|
||||||
: ${__cdist_name_manifest_dir:=manifests}
|
: ${__cdist_name_manifest_dir:=manifests}
|
||||||
: ${__cdist_name_out_dir:=out}
|
: ${__cdist_name_out_dir:=out}
|
||||||
: ${__cdist_name_conf_dir:=conf}
|
: ${__cdist_name_conf_dir:=conf}
|
||||||
|
: ${__cdist_name_target_host:=target_host}
|
||||||
: ${__cdist_name_type_bin:=type_bin}
|
: ${__cdist_name_type_bin:=type_bin}
|
||||||
|
|
||||||
# Exported variable names (usable for non core)
|
# Exported variable names (usable for non core)
|
||||||
: ${__cdist_name_var_explorer:=__$__cdist_name_explorer}
|
: ${__cdist_name_var_explorer:=__$__cdist_name_explorer}
|
||||||
: ${__cdist_name_var_manifest:=__$__cdist_name_manifest_dir}
|
: ${__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
|
# Name of the base directory containing the initial manifests
|
||||||
: ${__cdist_name_manifests:=manifests}
|
: ${__cdist_name_manifests:=manifests}
|
||||||
|
|
|
@ -27,6 +27,9 @@ set -eu
|
||||||
|
|
||||||
__cdist_target_host="$1"
|
__cdist_target_host="$1"
|
||||||
|
|
||||||
|
# Make target host available for non-core
|
||||||
|
export $__cdist_name_var_target_host=\"\$__cdist_target_host\"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# See cdist-stages(7)
|
# See cdist-stages(7)
|
||||||
#
|
#
|
||||||
|
@ -43,12 +46,11 @@ cdist-bin-transfer "$__cdist_target_host" "$__cdist_remote_bin_dir"
|
||||||
# Execute general explorers
|
# Execute general explorers
|
||||||
cdist-explorer-run-init "$__cdist_target_host" "$__cdist_out_explorer_dir"
|
cdist-explorer-run-init "$__cdist_target_host" "$__cdist_out_explorer_dir"
|
||||||
|
|
||||||
|
|
||||||
exit 2
|
|
||||||
|
|
||||||
# Create initial object base
|
# Create initial object base
|
||||||
cdist-manifest-run-init "$__cdist_target_host" "$__cdist_out_object_dir"
|
cdist-manifest-run-init "$__cdist_target_host" "$__cdist_out_object_dir"
|
||||||
|
|
||||||
|
exit 2
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue