From afedb3b90c2815303a099028acb187cab35148c1 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 4 Feb 2011 22:51:16 +0100 Subject: [PATCH] document more functionality Signed-off-by: Nico Schottelius --- HACKERS_README | 6 ++++++ bin/cdist-explorer-run | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/HACKERS_README b/HACKERS_README index 4d497573..0ce3baa1 100644 --- a/HACKERS_README +++ b/HACKERS_README @@ -19,3 +19,9 @@ __cdist_config=$(pwd -P)/conf __cdist_target_host=ikq02.ethz.ch cdist-manifest-i # See what it generated 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 diff --git a/bin/cdist-explorer-run b/bin/cdist-explorer-run index 57abfa87..5d325d3e 100755 --- a/bin/cdist-explorer-run +++ b/bin/cdist-explorer-run @@ -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 # coyping it multiple times works: a -> remote:/base/ = remote:/base/a vs. # 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}" \ "root@${__cdist_target_host}:${__cdist_remote_base_dir}" @@ -52,7 +54,7 @@ ssh root@${__cdist_target_host} \ # Ensure local destination directory exists 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 scp -r "root@${__cdist_target_host}:${__cdist_remote_cache_explorer}/*" \ "$(__cdist_cache_host)/$__cdist_name_explorer"