remember default __remote_{copy,exec} so we can use it ourself in custom __remote_{copy,exec} scripts

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2017-08-29 22:31:30 +02:00
parent 04c8415060
commit 0114001627
3 changed files with 4 additions and 2 deletions

View file

@ -41,6 +41,6 @@ log "@: $@"
log "code: $code" log "code: $code"
# copy files into chroot # copy files into chroot
$__remote_copy $code $__default_remote_copy $code
log "-----" log "-----"

View file

@ -44,6 +44,6 @@ log "@: $@"
log "code: $code" log "code: $code"
# Run the code # Run the code
$__remote_exec $target_host $code $__default_remote_exec $target_host $code
log "-----" log "-----"

View file

@ -39,6 +39,8 @@ case "$__cdist_loglevel" in
esac esac
cat << DONE cat << DONE
export __default_remote_exec="$__remote_exec"
export __default_remote_copy="$__remote_copy"
cdist config \ cdist config \
$cdist_args \ $cdist_args \
--remote-exec="$remote_exec $chroot" \ --remote-exec="$remote_exec $chroot" \