Browse Source

add user information

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
1.0
Nico Schottelius 12 years ago
parent
commit
66bfe35a46
  1. 3
      bin/cdist-bin-transfer
  2. 7
      bin/cdist-config
  3. 2
      bin/cdist-deploy-to
  4. 2
      bin/cdist-explorer-run-init

3
bin/cdist-bin-transfer

@ -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}\""

7
bin/cdist-config

@ -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

2
bin/cdist-deploy-to

@ -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"

2
bin/cdist-explorer-run-init

@ -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}"

Loading…
Cancel
Save