add user information
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
cd70c2ecee
commit
66bfe35a46
4 changed files with 10 additions and 4 deletions
|
@ -32,6 +32,9 @@ __cdist_my_remote_out_dir="$1"; shift
|
||||||
__cdist_conf_dir_path=$(which cdist-config)
|
__cdist_conf_dir_path=$(which cdist-config)
|
||||||
__cdist_src_base=${__cdist_conf_dir_path%config}
|
__cdist_src_base=${__cdist_conf_dir_path%config}
|
||||||
|
|
||||||
|
# Help the user
|
||||||
|
echo "Transferring cdist binaries ..."
|
||||||
|
|
||||||
# re-create basedir so it's clean
|
# re-create basedir so it's clean
|
||||||
ssh "${__cdist_remote_user}@${__cdist_target_host}" \
|
ssh "${__cdist_remote_user}@${__cdist_target_host}" \
|
||||||
"rm -rf \"${__cdist_my_remote_out_dir}\" && mkdir -p \"${__cdist_my_remote_out_dir}\""
|
"rm -rf \"${__cdist_my_remote_out_dir}\" && mkdir -p \"${__cdist_my_remote_out_dir}\""
|
||||||
|
|
|
@ -18,14 +18,13 @@
|
||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
# 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
|
# Fail if something bogus is going on and export all variables
|
||||||
# The export is mainly needed for remote knowledge
|
|
||||||
set -u
|
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)
|
# customise paths as you like (for distributors, geeks and hackers)
|
||||||
|
|
||||||
# Names / Constants
|
# Names / Constants
|
||||||
|
|
|
@ -34,6 +34,8 @@ export $__cdist_name_var_target_host="$__cdist_target_host"
|
||||||
# See cdist-stages(7)
|
# See cdist-stages(7)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
echo "cdist $__cdist_version: Configuring $__cdist_target_host"
|
||||||
|
|
||||||
# Init base
|
# Init base
|
||||||
mkdir -p "$__cdist_local_base_dir"
|
mkdir -p "$__cdist_local_base_dir"
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ set -ue
|
||||||
__cdist_target_host="$1"; shift
|
__cdist_target_host="$1"; shift
|
||||||
__cdist_my_out_dir="$1"; shift
|
__cdist_my_out_dir="$1"; shift
|
||||||
|
|
||||||
|
echo "Running general explorers ..."
|
||||||
|
|
||||||
# copy the explorers
|
# copy the explorers
|
||||||
cdist-dir push "$__cdist_target_host" \
|
cdist-dir push "$__cdist_target_host" \
|
||||||
"${__cdist_explorer_dir}" "${__cdist_remote_explorer_dir}"
|
"${__cdist_explorer_dir}" "${__cdist_remote_explorer_dir}"
|
||||||
|
|
Loading…
Reference in a new issue