2017-03-07 10:56:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-05-12 15:24:12 -07:00
|
|
|
VM_COUNT=3
|
|
|
|
IMAGE_FLAVOR=m1.small
|
2017-03-07 10:56:44 +01:00
|
|
|
PUBLIC_NET_ID=$(openstack network show public1 | awk '/ id /{print $4}')
|
|
|
|
DEMO_NET_ID=$(openstack network show demo-net | awk '/ id /{print $4}')
|
|
|
|
DEMO_SUBNET_ID=$(openstack subnet show demo-subnet | awk '/ id /{print $4}')
|
2015-04-27 02:16:25 -07:00
|
|
|
|
2017-03-07 10:56:44 +01:00
|
|
|
echo "Public net id is $PUBLIC_NET_ID"
|
|
|
|
echo "Demo net id is $DEMO_NET_ID"
|
|
|
|
echo "Demo subnet id is $DEMO_SUBNET_ID"
|
2015-04-27 02:16:25 -07:00
|
|
|
|
2017-03-07 10:56:44 +01:00
|
|
|
openstack stack create --parameter vm_count=$VM_COUNT \
|
|
|
|
--parameter image_flavor=$IMAGE_FLAVOR \
|
|
|
|
--parameter public_net_id=$PUBLIC_NET_ID \
|
|
|
|
--parameter demo_net_id=$DEMO_NET_ID \
|
|
|
|
--parameter demo_subnet_id=$DEMO_SUBNET_ID \
|
|
|
|
-t steak-rg.yaml steak
|