From 435200f0bc6b8a7d75ab9e019361cd4ced0d6b58 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorek Date: Fri, 26 Jul 2019 14:14:19 +0200 Subject: k8s: Add simple logging to provisioning scripts Issue-ID: SECCOM-235 Change-Id: Iaeb4b3e621f09ea14b9576126223e4df4b8682f3 Signed-off-by: Pawel Wieczorek --- test/security/k8s/vagrant/dublin/Vagrantfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/security/k8s/vagrant/dublin/Vagrantfile b/test/security/k8s/vagrant/dublin/Vagrantfile index 9e92580fa..fb65e1aa2 100644 --- a/test/security/k8s/vagrant/dublin/Vagrantfile +++ b/test/security/k8s/vagrant/dublin/Vagrantfile @@ -26,16 +26,19 @@ SCRIPT $add_to_docker_group = <<-SCRIPT USER="$1" + echo "Adding ${USER} to 'docker' group" usermod -aG docker "$USER" SCRIPT $install_sshpass = <<-SCRIPT apt-get update + echo "Installing 'sshpass'" apt-get install sshpass SCRIPT $generate_key = <<-SCRIPT KEY_FILE="$1" + echo "Generating SSH key (${KEY_FILE})" ssh-keygen -q -b 4096 -t rsa -f "$KEY_FILE" -N "" SCRIPT @@ -44,14 +47,19 @@ $deploy_key = <<-SCRIPT USER="$2" PASS="$PASSWORD" IPS="$3" + echo "Deploying ${KEY} for ${USER}" for ip in $IPS; do + echo "on ${ip}" sshpass -p "$PASS" ssh-copy-id -o StrictHostKeyChecking=no -i "$KEY" "${USER}@${ip}" done SCRIPT $link_dotfiles = <<-SCRIPT for rc in /vagrant/dot_*; do - ln -sf "$rc" "${HOME}/.${rc##*dot_}" + src="$rc" + dst="${HOME}/.${rc##*dot_}" + echo "Symlinking ${src} to ${dst}" + ln -sf "$src" "$dst" done SCRIPT -- cgit 1.2.3-korg