Skip to content
Snippets Groups Projects
run-install-osm.sh 586 B
Newer Older
#!/bin/bash
echo $0 started at $(date)

. ./common-vars
. ./main_credentials.rc

for PARTICIPANT in `seq ${START} ${MAX}` ; do
  VM_NAME=`expr charmedosm-${PARTICIPANT}`
  IP=`openstack server list --name $VM_NAME --column Networks -f yaml | head -3 | tail -1 | grep -o '[0-9]\+[.][0-9]\+[.][0-9]\+[.][0-9]\+'`
  echo $IP
  scp -o StrictHostKeyChecking=no -i hackfest_rsa ./vm-install-osm.sh ubuntu@${IP}: &
  ssh -o StrictHostKeyChecking=no -i hackfest_rsa ubuntu@${IP} ./vm-install-osm.sh 2>&1 | tee -a logs/vm-install-osm-${PARTICIPANT}.log&
done
wait

echo $0 $@ complete at $(date)