../bin/cdist-object-prepare -> __cdist_object_prepare
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
cc7da0c264
commit
0e2c221b43
2 changed files with 21 additions and 19 deletions
|
@ -56,7 +56,7 @@ __cdist_dir push "${__cdist_core_dir}" "${__cdist_remote_core_dir}"
|
||||||
|
|
||||||
cdist-explorer-run-global "$__cdist_target_host"
|
cdist-explorer-run-global "$__cdist_target_host"
|
||||||
cdist-manifest-run-init "$__cdist_target_host"
|
cdist-manifest-run-init "$__cdist_target_host"
|
||||||
__cdist_object_all cdist-object-prepare
|
__cdist_object_all __cdist_object_prepare
|
||||||
__cdist_object_all __cdist_object_run
|
__cdist_object_all __cdist_object_run
|
||||||
cdist-cache "$__cdist_target_host"
|
cdist-cache "$__cdist_target_host"
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,9 @@
|
||||||
# - run type manifest
|
# - run type manifest
|
||||||
#
|
#
|
||||||
|
|
||||||
. cdist-config
|
__cdist_object_prepare()
|
||||||
[ $# -eq 2 ] || __cdist_usage "<target host> <object>"
|
{
|
||||||
|
[ $# -eq 1 ] || __cdist_usage "<object>"
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
__cdist_target_host="$1"; shift
|
__cdist_target_host="$1"; shift
|
||||||
|
@ -45,3 +46,4 @@ if [ ! -f "$__cdist_object_prepared" ]; then
|
||||||
# Mark this object as prepared
|
# Mark this object as prepared
|
||||||
touch "$__cdist_object_prepared"
|
touch "$__cdist_object_prepared"
|
||||||
fi
|
fi
|
||||||
|
}
|
Loading…
Reference in a new issue