| ... | ... |
@@ -1,5 +1,12 @@ |
| 1 | 1 |
#!/usr/bin/env bash |
| 2 | 2 |
|
| 3 |
+# Use stackrc.example if stackrc is missing |
|
| 4 |
+if [ ! -e ./stackrc ]; then |
|
| 5 |
+ read -n1 -p "No stackrc present. Copy stackrc.example to stackrc? (y/n) " |
|
| 6 |
+ echo |
|
| 7 |
+ [[ $REPLY = [yY] ]] && cp stackrc.example stackrc|| { echo "Aborting: Missing stackrc"; exit 1; }
|
|
| 8 |
+fi |
|
| 9 |
+ |
|
| 3 | 10 |
# Source params |
| 4 | 11 |
source ./stackrc |
| 5 | 12 |
|
| ... | ... |
@@ -1,5 +1,12 @@ |
| 1 | 1 |
#!/bin/bash |
| 2 | 2 |
|
| 3 |
+# Use stackrc.example if stackrc is missing |
|
| 4 |
+if [ ! -e ./stackrc ]; then |
|
| 5 |
+ read -n1 -p "No stackrc present. Copy stackrc.example to stackrc? (y/n) " |
|
| 6 |
+ echo |
|
| 7 |
+ [[ $REPLY = [yY] ]] && cp stackrc.example stackrc|| { echo "Aborting: Missing stackrc"; exit 1; }
|
|
| 8 |
+fi |
|
| 9 |
+ |
|
| 3 | 10 |
# Source params |
| 4 | 11 |
source ./stackrc |
| 5 | 12 |
|
| ... | ... |
@@ -59,6 +59,13 @@ set -o errexit |
| 59 | 59 |
# an error. It is also useful for following allowing as the install occurs. |
| 60 | 60 |
set -o xtrace |
| 61 | 61 |
|
| 62 |
+# Use stackrc.example if stackrc is missing |
|
| 63 |
+if [ ! -e ./stackrc ]; then |
|
| 64 |
+ read -n1 -p "No stackrc present. Copy stackrc.example to stackrc? (y/n) " |
|
| 65 |
+ echo |
|
| 66 |
+ [[ $REPLY = [yY] ]] && cp stackrc.example stackrc|| { echo "Aborting: Missing stackrc"; exit 1; }
|
|
| 67 |
+fi |
|
| 68 |
+ |
|
| 62 | 69 |
# Import variables |
| 63 | 70 |
source ./stackrc |
| 64 | 71 |
|
| 65 | 72 |
deleted file mode 100644 |
| ... | ... |
@@ -1,36 +0,0 @@ |
| 1 |
-# compute service |
|
| 2 |
-NOVA_REPO=https://github.com/openstack/nova.git |
|
| 3 |
-NOVA_BRANCH=2011.3 |
|
| 4 |
- |
|
| 5 |
-# image catalog service |
|
| 6 |
-GLANCE_REPO=https://github.com/cloudbuilders/glance.git |
|
| 7 |
-GLANCE_BRANCH=diablo |
|
| 8 |
- |
|
| 9 |
-# unified auth system (manages accounts/tokens) |
|
| 10 |
-KEYSTONE_REPO=https://github.com/cloudbuilders/keystone.git |
|
| 11 |
-KEYSTONE_BRANCH=diablo |
|
| 12 |
- |
|
| 13 |
-# a websockets/html5 or flash powered VNC console for vm instances |
|
| 14 |
-NOVNC_REPO=https://github.com/cloudbuilders/noVNC.git |
|
| 15 |
-NOVNC_BRANCH=master |
|
| 16 |
- |
|
| 17 |
-# django powered web control panel for openstack |
|
| 18 |
-DASH_REPO=https://github.com/cloudbuilders/openstack-dashboard.git |
|
| 19 |
-DASH_BRANCH=master |
|
| 20 |
- |
|
| 21 |
-# add nixon, will use this to show munin graphs in dashboard |
|
| 22 |
-NIXON_REPO=https://github.com/cloudbuilders/nixon.git |
|
| 23 |
-NIXON_BRANCH=diablo |
|
| 24 |
- |
|
| 25 |
-# python client library to nova that dashboard (and others) use |
|
| 26 |
-NOVACLIENT_REPO=https://github.com/cloudbuilders/python-novaclient.git |
|
| 27 |
-NOVACLIENT_BRANCH=master |
|
| 28 |
- |
|
| 29 |
-# openstackx is a collection of extensions to openstack.compute & nova |
|
| 30 |
-# that is *deprecated*. The code is being moved into python-novaclient & nova. |
|
| 31 |
-OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git |
|
| 32 |
-OPENSTACKX_BRANCH=diablo |
|
| 33 |
- |
|
| 34 |
-# openstack-munin is a collection of munin plugins for monitoring the stack |
|
| 35 |
-MUNIN_REPO=https://github.com/cloudbuilders/openstack-munin.git |
|
| 36 |
-MUNIN_BRANCH=master |
| 37 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 0 |
+# compute service |
|
| 1 |
+NOVA_REPO=https://github.com/openstack/nova.git |
|
| 2 |
+NOVA_BRANCH=2011.3 |
|
| 3 |
+ |
|
| 4 |
+# image catalog service |
|
| 5 |
+GLANCE_REPO=https://github.com/cloudbuilders/glance.git |
|
| 6 |
+GLANCE_BRANCH=diablo |
|
| 7 |
+ |
|
| 8 |
+# unified auth system (manages accounts/tokens) |
|
| 9 |
+KEYSTONE_REPO=https://github.com/cloudbuilders/keystone.git |
|
| 10 |
+KEYSTONE_BRANCH=diablo |
|
| 11 |
+ |
|
| 12 |
+# a websockets/html5 or flash powered VNC console for vm instances |
|
| 13 |
+NOVNC_REPO=https://github.com/cloudbuilders/noVNC.git |
|
| 14 |
+NOVNC_BRANCH=master |
|
| 15 |
+ |
|
| 16 |
+# django powered web control panel for openstack |
|
| 17 |
+DASH_REPO=https://github.com/cloudbuilders/openstack-dashboard.git |
|
| 18 |
+DASH_BRANCH=master |
|
| 19 |
+ |
|
| 20 |
+# add nixon, will use this to show munin graphs in dashboard |
|
| 21 |
+NIXON_REPO=https://github.com/cloudbuilders/nixon.git |
|
| 22 |
+NIXON_BRANCH=diablo |
|
| 23 |
+ |
|
| 24 |
+# python client library to nova that dashboard (and others) use |
|
| 25 |
+NOVACLIENT_REPO=https://github.com/cloudbuilders/python-novaclient.git |
|
| 26 |
+NOVACLIENT_BRANCH=master |
|
| 27 |
+ |
|
| 28 |
+# openstackx is a collection of extensions to openstack.compute & nova |
|
| 29 |
+# that is *deprecated*. The code is being moved into python-novaclient & nova. |
|
| 30 |
+OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git |
|
| 31 |
+OPENSTACKX_BRANCH=diablo |
|
| 32 |
+ |
|
| 33 |
+# openstack-munin is a collection of munin plugins for monitoring the stack |
|
| 34 |
+MUNIN_REPO=https://github.com/cloudbuilders/openstack-munin.git |
|
| 35 |
+MUNIN_BRANCH=master |