blob: 1f1c78930e2ab1a7bf4fb3665d7c23f21759e6d9 [file] [log] [blame]
Andy Bavier8d51c6c2015-04-01 11:40:22 -04001#!/bin/bash
2
3function 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 Bavierc3a11992016-04-22 05:47:42 -040011 uvt-kvm create $NAME release=trusty --cpu=$CPU --memory=$MEM_MB --disk=$DISK_GB
Andy Baviercccf27b2015-08-17 14:48:29 -040012 uvt-kvm wait --insecure $NAME
Andy Bavier8d51c6c2015-04-01 11:40:22 -040013 fi
14}
15
16create-vm juju 1 2048 20
17create-vm mysql 2 4096 40
18create-vm rabbitmq-server 2 4096 40
19create-vm keystone 2 4096 40
20create-vm glance 2 4096 160
21create-vm nova-cloud-controller 2 4096 40
Andy Bavier093e6a82015-08-21 13:31:31 -040022create-vm neutron-gateway 2 4096 40
23create-vm neutron-api 2 4096 40
Andy Bavier8d51c6c2015-04-01 11:40:22 -040024create-vm openstack-dashboard 1 2048 20
25create-vm ceilometer 1 2048 20
26create-vm nagios 1 2048 20