document more functionality

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-04 22:51:16 +01:00
parent 1850042126
commit afedb3b90c
2 changed files with 9 additions and 1 deletions

View file

@ -19,3 +19,9 @@ __cdist_config=$(pwd -P)/conf __cdist_target_host=ikq02.ethz.ch cdist-manifest-i
# See what it generated # See what it generated
find conf/cache find conf/cache
# Run explorer on a "remote" host
__cdist_config=$(pwd -P)/conf __cdist_target_host=localhost ./bin/cdist-explorer-run
# Display result
find conf/cache/hosts/localhost

View file

@ -36,6 +36,8 @@ ssh root@${__cdist_target_host} "mkdir -p \"${__cdist_remote_base_dir}\" \
# Transfer all explorers to the target dir - must be one level above, so # Transfer all explorers to the target dir - must be one level above, so
# coyping it multiple times works: a -> remote:/base/ = remote:/base/a vs. # coyping it multiple times works: a -> remote:/base/ = remote:/base/a vs.
# a -> remote:/base/a = remote:/base/a/a (second copy) # a -> remote:/base/a = remote:/base/a/a (second copy)
# FIXME: enable -q as soon as the code is cleaned up
scp -r "${__cdist_explorer_dir}" \ scp -r "${__cdist_explorer_dir}" \
"root@${__cdist_target_host}:${__cdist_remote_base_dir}" "root@${__cdist_target_host}:${__cdist_remote_base_dir}"
@ -52,7 +54,7 @@ ssh root@${__cdist_target_host} \
# Ensure local destination directory exists # Ensure local destination directory exists
mkdir -p "$(__cdist_cache_host)/$__cdist_name_explorer" mkdir -p "$(__cdist_cache_host)/$__cdist_name_explorer"
# FIXME: enable -q as soon as the code is cleaned up
# Transfer back all results - FIXME: Add 2 level cache, so old version is kept until success # Transfer back all results - FIXME: Add 2 level cache, so old version is kept until success
scp -r "root@${__cdist_target_host}:${__cdist_remote_cache_explorer}/*" \ scp -r "root@${__cdist_target_host}:${__cdist_remote_cache_explorer}/*" \
"$(__cdist_cache_host)/$__cdist_name_explorer" "$(__cdist_cache_host)/$__cdist_name_explorer"