forked from ungleich-public/cdist
define variables to be exported to types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
de43f4d5d8
commit
bd026bad18
4 changed files with 30 additions and 28 deletions
|
|
@ -23,26 +23,25 @@
|
|||
|
||||
. cdist-config
|
||||
[ $# -eq 1 ] || __cdist_usage "<target host>"
|
||||
set -eu
|
||||
set -e
|
||||
|
||||
__cdist_target_host="$1"
|
||||
|
||||
tmp_exp="$__cdist_tmp_dir/$__cdist_name_explorer"
|
||||
tmp_obj="$__cdist_tmp_dir/$__cdist_name_object"
|
||||
tmp_exec="$__cdist_tmp_dir/$__cdist_name_exec"
|
||||
export __cdist_out_explorers="$__cdist_tmp_dir/$__cdist_name_explorer"
|
||||
export __cdist_out_objects="$__cdist_tmp_dir/$__cdist_name_object"
|
||||
export __cdist_out_execs="$__cdist_tmp_dir/$__cdist_name_exec"
|
||||
|
||||
# See cdist-stages(7)
|
||||
cdist-explorer-run "$__cdist_target_host" "$tmp_exp"
|
||||
cdist-manifest-init "$__cdist_target_host" "$tmp_obj"
|
||||
cdist-manifest-run-all "$__cdist_target_host" "$tmp_obj"
|
||||
cdist-object-codegen-all "$__cdist_target_host" "$tmp_obj" "$tmp_exec"
|
||||
cdist-object-codegen-all "$__cdist_target_host" "$tmp_obj" "$tmp_exec"
|
||||
cdist-exec-transfer "$__cdist_target_host" "$tmp_exec"
|
||||
cdist-explorer-run "$__cdist_target_host" "$__cdist_out_explorers"
|
||||
cdist-manifest-init "$__cdist_target_host" "$__cdist_out_objects"
|
||||
cdist-manifest-run-all "$__cdist_target_host" "$__cdist_out_objects"
|
||||
cdist-object-codegen-all "$__cdist_target_host" "$__cdist_out_objects" "$__cdist_out_execs"
|
||||
cdist-exec-transfer "$__cdist_target_host" "$__cdist_out_execs"
|
||||
cdist-exec-run "$__cdist_target_host"
|
||||
|
||||
# FIXME: Create new cache from results
|
||||
# echo rm -rf "$(__cdist_cache_host)"
|
||||
# mkdir -p "$(__cdist_cache_host)"
|
||||
# mv "$tmp_exp" "$tmp_obj" "$(__cdist_cache_host)"
|
||||
# mv "$__cdist_out_explorers" "$__cdist_out_objects" "$(__cdist_cache_host)"
|
||||
# Also save last code fragment
|
||||
# mv "$tmp_code" "$(__cdist_cache_host)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue