Merge "Use Kingbird Bind host URL for Tempest"
[functest.git] / testcases / features / sfc / server_presetup_CI.bash
1 #!/bin/bash
2 set -e
3 ssh_options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
4 BASEDIR=`dirname $0`
5 INSTALLER_IP=${INSTALLER_IP:-10.20.0.2}
6
7 pushd $BASEDIR
8 ip=`sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'fuel node'|grep controller|awk '{print $10}' | head -1`
9 echo $ip
10 sshpass -p r00tme scp $ssh_options set-up-tacker.sh ${INSTALLER_IP}:/root
11 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'scp set-up-tacker.sh '"$ip"':/root'
12 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'ssh root@'"$ip"' bash set-up-tacker.sh'
13 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'scp '"$ip"':/root/tackerc .'
14 sshpass -p r00tme scp $ssh_options ${INSTALLER_IP}:/root/tackerc $BASEDIR