VTWO-14496 : continue configuring machine

This commit is contained in:
mbenabda
2019-06-20 20:56:42 +02:00
parent ee481cc7d4
commit 89fee4b7aa
12 changed files with 180 additions and 11 deletions

17
scripts/copy_file_to_nodes Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
SCRIPTS_DIR=$(dirname $0)
FILE_TO_COPY=$(realpath "$1")
NODE_NAMES="$($SCRIPTS_DIR/node_names $2)"
echo "will copy $FILE_TO_COPY to nodes $(echo $NODE_NAMES | xargs)"
echo ""
echo ""
echo ""
echo ""
read -n 1 -s -r -p "Press any key to continue..."
echo ""
echo ""
parallel vagrant scp $FILE_TO_COPY {}:~/ ::: $NODE_NAMES