aboutsummaryrefslogtreecommitdiffstats
path: root/data/qtip_creds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/qtip_creds.sh')
-rwxr-xr-xdata/qtip_creds.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/qtip_creds.sh b/data/qtip_creds.sh
new file mode 100755
index 00000000..e2619d64
--- /dev/null
+++ b/data/qtip_creds.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+DEST_IP=$1
+echo $INSTALLER_TYPE
+echo $INSTALLER_IP
+
+case "$INSTALLER_TYPE" in
+ apex)
+ PSWD="vagrant";;
+ fuel)
+ PSWD="r00tme";;
+ compass)
+ PSWD="compass";;
+ joid)
+ PSWD="joid";;
+ *)
+ echo "Unkown installer $INSTALLER_TYPE specified";;
+esac
+
+sshoptions="-o StrictHostKeyChecking=no"
+sshpass -p $PSWD scp $sshoptions QtipKey.pub root@$INSTALLER_IP:/root
+sshpass -p $PSWD ssh $sshoptions root@$INSTALLER_IP "ssh-copy-id -i /root/QtipKey.pub root@$DEST_IP && rm -rf /root/QtipKey.pub"
+