Andy Bavier | ea5b44c | 2016-04-08 16:12:30 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | cd ~ |
| 4 | git clone https://github.com/open-cloud/openstack-cluster-setup.git |
| 5 | cd ~/openstack-cluster-setup |
| 6 | ./bootstrap.sh |
| 7 | ansible-playbook -i cord-test-hosts cord-setup.yml |
| 8 | |
| 9 | ssh ubuntu@onos-cord "cd cord; sudo docker-compose up -d" |
| 10 | ssh ubuntu@xos "cd xos/xos/configurations/cord-pod; sudo docker-compose pull" |
| 11 | |
| 12 | # Need to wait for OpenStack services to come up before running any XOS "make" commands |
| 13 | echo "Waiting for the OpenStack services to fully come up." |
| 14 | echo "This can take 30 minutes or more, be patient!" |
| 15 | i=0 |
| 16 | until juju status --format=summary|grep "started: 23" > /dev/null |
| 17 | do |
| 18 | sleep 60 |
| 19 | (( i += 1 )) |
| 20 | echo "Waited $i minutes" |
| 21 | done |
| 22 | |
| 23 | echo "All OpenStack services are up." |