|
...
|
...
|
@@ -39,11 +39,6 @@ NET_MAN=${NET_MAN:-VlanManager}
|
|
39
|
39
|
|
|
40
|
40
|
SQL_CONN=sqlite:///$NOVA_DIR/nova.sqlite
|
|
41
|
41
|
|
|
42
|
|
-# clone a git repository to a location
|
|
43
|
|
-function ginstall {
|
|
44
|
|
- git clone $1 $2
|
|
45
|
|
-}
|
|
46
|
|
-
|
|
47
|
42
|
# You should only have to run this once
|
|
48
|
43
|
if [ "$CMD" == "install" ]; then
|
|
49
|
44
|
# install apt requirements
|
|
...
|
...
|
@@ -52,21 +47,21 @@ if [ "$CMD" == "install" ]; then
|
|
52
|
52
|
# install python requirements
|
|
53
|
53
|
pip install `cat $DIR/pips/*`
|
|
54
|
54
|
|
|
55
|
|
- # vm service
|
|
56
|
|
- ginstall https://github.com/cloudbuilders/nova.git $NOVA_DIR
|
|
|
55
|
+ # compute service
|
|
|
56
|
+ git clone https://github.com/cloudbuilders/nova.git $NOVA_DIR
|
|
|
57
|
+ # image catalog service
|
|
|
58
|
+ git clone https://github.com/cloudbuilders/glance.git $GLANCE_DIR
|
|
|
59
|
+ # unified auth system (manages accounts/tokens)
|
|
|
60
|
+ git clone https://github.com/cloudbuilders/keystone.git $KEYSTONE_DIR
|
|
57
|
61
|
# a websockets/html5 or flash powered VNC console for vm instances
|
|
58
|
|
- ginstall https://github.com/cloudbuilders/noVNC.git $NOVNC_DIR
|
|
|
62
|
+ git clone https://github.com/cloudbuilders/noVNC.git $NOVNC_DIR
|
|
59
|
63
|
# django powered web control panel for openstack
|
|
60
|
|
- ginstall https://github.com/cloudbuilders/openstack-dashboard.git $DASH_DIR
|
|
|
64
|
+ git clone https://github.com/cloudbuilders/openstack-dashboard.git $DASH_DIR
|
|
61
|
65
|
# python client library to nova that dashboard (and others) use
|
|
62
|
|
- ginstall https://github.com/cloudbuilders/python-novaclient.git $NOVACLIENT_DIR
|
|
63
|
|
- # unified auth system (manages accounts/tokens)
|
|
64
|
|
- ginstall https://github.com/cloudbuilders/keystone.git $KEYSTONE_DIR
|
|
65
|
|
- # image catalog
|
|
66
|
|
- ginstall https://github.com/cloudbuilders/glance.git $GLANCE_DIR
|
|
|
66
|
+ git clone https://github.com/cloudbuilders/python-novaclient.git $NOVACLIENT_DIR
|
|
67
|
67
|
# openstackx is a collection of extensions to openstack.compute & nova
|
|
68
|
68
|
# that is *deprecated*. The code is being moved into python-novaclient & nova.
|
|
69
|
|
- ginstall https://github.com/cloudbuilders/openstackx.git $API_DIR
|
|
|
69
|
+ git clone https://github.com/cloudbuilders/openstackx.git $API_DIR
|
|
70
|
70
|
|
|
71
|
71
|
# setup our checkouts so they are installed into python path
|
|
72
|
72
|
# allowing `import nova` or `import glance.client`
|
|
...
|
...
|
@@ -106,7 +101,7 @@ if [ "$CMD" == "install" ]; then
|
|
106
|
106
|
cp local/local_settings.py.example local/local_settings.py
|
|
107
|
107
|
dashboard/manage.py syncdb
|
|
108
|
108
|
|
|
109
|
|
- # *Setup Apache*
|
|
|
109
|
+ # # Setup Apache
|
|
110
|
110
|
# create an empty directory to use as our
|
|
111
|
111
|
mkdir $DASH_DIR/.blackhole
|
|
112
|
112
|
# FIXME(ja): can't figure out how to make $DASH_DIR work in sed, also install to available/a2e it
|