aboutsummaryrefslogtreecommitdiff
path: root/contrib/demos/heat/launch
diff options
context:
space:
mode:
authorChristian Berendt <berendt@betacloud-solutions.de>2016-10-14 12:55:26 +0200
committerChristian Berendt <berendt@betacloud-solutions.de>2016-10-14 12:57:49 +0200
commitb725bd09dd73edf22bdd67bd13359e2a7d8b0796 (patch)
treeb088b5f48a51df9dfb40938b1f573f0b6f1685d5 /contrib/demos/heat/launch
parentdbf05f076fb2394439afcee95de3922a83f92219 (diff)
downloadkolla-b725bd09dd73edf22bdd67bd13359e2a7d8b0796.tar.gz
kolla-b725bd09dd73edf22bdd67bd13359e2a7d8b0796.zip
Move demos and dev directory into a new contrib directory
TrivialFix Change-Id: Ifb8f19afa1514488bd288670d08b96f84982a4e1
Diffstat (limited to 'contrib/demos/heat/launch')
-rwxr-xr-xcontrib/demos/heat/launch11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/demos/heat/launch b/contrib/demos/heat/launch
new file mode 100755
index 000000000..768b69eb0
--- /dev/null
+++ b/contrib/demos/heat/launch
@@ -0,0 +1,11 @@
+VM_COUNT=3
+IMAGE_FLAVOR=m1.small
+PUBLIC_NET_ID=$(neutron net-list | grep public | awk '{print $2}')
+DEMO_NET_ID=$(neutron net-list | grep demo | awk '{print $2}')
+DEMO_SUBNET_ID=$(neutron net-list | grep demo | awk '{print $6}')
+
+echo Public net id is $PUBLIC_NET_ID
+echo Demo net id is $DEMO_NET_ID
+echo Demo subnet id is $DEMO_SUBNET_ID
+
+heat stack-create steak --template-file steak-rg.yaml --parameters="vm_count=$VM_COUNT;image_flavor=$IMAGE_FLAVOR;public_net_id=$PUBLIC_NET_ID;demo_net_id=$DEMO_NET_ID;demo_subnet_id=$DEMO_SUBNET_ID"