Andy Bavier | 8d51c6c | 2015-04-01 11:40:22 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | function create-vm { |
| 4 | NAME=$1 |
| 5 | CPU=$2 |
| 6 | MEM_MB=$3 |
| 7 | DISK_GB=$4 |
| 8 | uvt-kvm list | grep $1 |
| 9 | if [ "$?" -ne "0" ] |
| 10 | then |
Andy Bavier | c3a1199 | 2016-04-22 05:47:42 -0400 | [diff] [blame] | 11 | uvt-kvm create $NAME release=trusty --cpu=$CPU --memory=$MEM_MB --disk=$DISK_GB |
Andy Bavier | cccf27b | 2015-08-17 14:48:29 -0400 | [diff] [blame] | 12 | uvt-kvm wait --insecure $NAME |
Andy Bavier | 8d51c6c | 2015-04-01 11:40:22 -0400 | [diff] [blame] | 13 | fi |
| 14 | } |
| 15 | |
| 16 | create-vm juju 1 2048 20 |
| 17 | create-vm mysql 2 4096 40 |
| 18 | create-vm rabbitmq-server 2 4096 40 |
| 19 | create-vm keystone 2 4096 40 |
| 20 | create-vm glance 2 4096 160 |
| 21 | create-vm nova-cloud-controller 2 4096 40 |
Andy Bavier | 093e6a8 | 2015-08-21 13:31:31 -0400 | [diff] [blame] | 22 | create-vm neutron-gateway 2 4096 40 |
| 23 | create-vm neutron-api 2 4096 40 |
Andy Bavier | 8d51c6c | 2015-04-01 11:40:22 -0400 | [diff] [blame] | 24 | create-vm openstack-dashboard 1 2048 20 |
| 25 | create-vm ceilometer 1 2048 20 |
| 26 | create-vm nagios 1 2048 20 |