aboutsummaryrefslogtreecommitdiff
path: root/tools/init-runonce
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-09-15 15:46:56 +0100
committerPaul Bourke <paul.bourke@oracle.com>2016-09-15 15:46:56 +0100
commitdc85fda07af990e9cb2a8acb5c4a02b56a09b62b (patch)
tree1cc4d89efd28de85d0465b207716ac79958520ef /tools/init-runonce
parentbac19675ed3eb894a39f4fc4ce755fe0da62a458 (diff)
downloadkolla-ansible-dc85fda07af990e9cb2a8acb5c4a02b56a09b62b.tar.gz
kolla-ansible-dc85fda07af990e9cb2a8acb5c4a02b56a09b62b.zip
Add a tip at the end of tools/init-runonce
Give the user an easy to run way to test their deploy after running init-runonce. TrivialFix Change-Id: I7d984433c8f1b56d0b74be06b3e411044e897790
Diffstat (limited to 'tools/init-runonce')
-rwxr-xr-xtools/init-runonce16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/init-runonce b/tools/init-runonce
index ffd6dd87e..7946699f4 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -98,3 +98,19 @@ if ! openstack flavor list | grep -q m1.tiny; then
openstack flavor create --id 4 --ram 8192 --disk 80 --vcpus 4 m1.large
openstack flavor create --id 5 --ram 16384 --disk 160 --vcpus 8 m1.xlarge
fi
+
+DEMO_NET_ID=$(openstack network list | awk '/ demo-net / {print $2}')
+
+cat << EOF
+
+Done.
+
+To deploy a demo instance, run:
+
+openstack server create \\
+ --image cirros \\
+ --flavor m1.tiny \\
+ --key-name mykey \\
+ --nic net-id=${DEMO_NET_ID} \\
+ demo1
+EOF