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"