add user information

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-25 01:48:18 +01:00
parent cd70c2ecee
commit 66bfe35a46
4 changed files with 10 additions and 4 deletions

View File

@ -32,6 +32,9 @@ __cdist_my_remote_out_dir="$1"; shift
__cdist_conf_dir_path=$(which cdist-config)
__cdist_src_base=${__cdist_conf_dir_path%config}
# Help the user
echo "Transferring cdist binaries ..."
# re-create basedir so it's clean
ssh "${__cdist_remote_user}@${__cdist_target_host}" \
"rm -rf \"${__cdist_my_remote_out_dir}\" && mkdir -p \"${__cdist_my_remote_out_dir}\""

View File

@ -18,14 +18,13 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
#
# Print configuration directories - helper for all other scripts
#
# Fail if something bogus is going on and export all variables
# The export is mainly needed for remote knowledge
set -u
# Values can be overriden from outside, so you can
__cdist_version="1.0.0"
# Most values can be overriden from outside, so you can
# customise paths as you like (for distributors, geeks and hackers)
# Names / Constants

View File

@ -34,6 +34,8 @@ export $__cdist_name_var_target_host="$__cdist_target_host"
# See cdist-stages(7)
#
echo "cdist $__cdist_version: Configuring $__cdist_target_host"
# Init base
mkdir -p "$__cdist_local_base_dir"

View File

@ -28,6 +28,8 @@ set -ue
__cdist_target_host="$1"; shift
__cdist_my_out_dir="$1"; shift
echo "Running general explorers ..."
# copy the explorers
cdist-dir push "$__cdist_target_host" \
"${__cdist_explorer_dir}" "${__cdist_remote_explorer_dir}"