Browse code

move apts/pips to files directory

Jesse Andrews authored on 2011/09/17 03:27:43
Showing 17 changed files
1 1
deleted file mode 100644
... ...
@@ -1,4 +0,0 @@
1
-apache2
2
-libapache2-mod-wsgi
3
-python-dateutil
4
-python-anyjson
5 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-pep8
2
-pylint
3
-python-pip
4
-screen
5
-unzip
6
-wget
7
-psmisc
8
-git-core
9
-lsof # useful when debugging
10
-openssh-server
11
-vim-nox
12
-locate # useful when debugging
13
-munin
14 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-python-eventlet
2
-python-routes
3
-python-greenlet
4
-python-argparse
5
-python-sqlalchemy
6
-python-wsgiref
7
-python-pastedeploy
8
-python-xattr
9 1
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-python-setuptools
2
-python-dev
3
-python-lxml
4
-python-pastescript
5
-python-pastedeploy
6
-python-paste
7
-sqlite3
8
-python-pysqlite2
9
-python-sqlalchemy
10
-python-webob
11
-python-greenlet
12
-python-routes
13
-libldap2-dev
14
-libsasl2-dev
15
-
16 1
deleted file mode 100644
... ...
@@ -1,35 +0,0 @@
1
-dnsmasq-base
2
-kpartx
3
-mysql-server
4
-python-mysqldb
5
-kvm
6
-gawk
7
-iptables
8
-ebtables
9
-sqlite3
10
-sudo
11
-kvm
12
-libvirt-bin
13
-vlan
14
-curl
15
-rabbitmq-server
16
-socat # used by ajaxterm
17
-python-mox
18
-python-paste
19
-python-migrate
20
-python-gflags
21
-python-greenlet
22
-python-libvirt
23
-python-libxml2
24
-python-routes
25
-python-netaddr
26
-python-pastedeploy
27
-python-eventlet
28
-python-cheetah
29
-python-carrot
30
-python-tempita
31
-python-sqlalchemy
32
-python-suds
33
-python-lockfile
34
-python-m2crypto
35
-python-boto
36 1
deleted file mode 100644
... ...
@@ -1,18 +0,0 @@
1
-# a collection of packages that speed up installation as they are dependencies
2
-# of packages we can't install during bootstraping (rabbitmq-server, 
3
-# mysql-server, libvirt-bin)
4
-#
5
-# NOTE: only add packages to this file that aren't needed directly
6
-mysql-common
7
-mysql-client-5.1
8
-erlang-base
9
-erlang-ssl 
10
-erlang-nox
11
-erlang-inets
12
-erlang-mnesia
13
-libhtml-template-perl
14
-gettext-base
15
-libavahi-client3
16
-libxml2-utils
17
-libpciaccess0
18
-libparted0debian1
... ...
@@ -55,8 +55,8 @@ if [ ! -d $CACHEDIR ]; then
55 55
     # trigger the initial debootstrap
56 56
     lxc-create -n $CONTAINER -t natty -f $LXC_CONF
57 57
     chroot $CACHEDIR apt-get update
58
-    chroot $CACHEDIR apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
59
-    chroot $CACHEDIR pip install `cat pips/*`
58
+    chroot $CACHEDIR apt-get install -y `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
59
+    chroot $CACHEDIR pip install `cat files/pips/*`
60 60
     git clone https://github.com/cloudbuilders/nova.git $CACHEDIR/opt/nova
61 61
     git clone https://github.com/cloudbuilders/openstackx.git $CACHEDIR/opt/openstackx
62 62
     git clone https://github.com/cloudbuilders/noVNC.git $CACHEDIR/opt/noVNC
... ...
@@ -13,8 +13,8 @@ if [ ! -d proto ]; then
13 13
     debootstrap natty proto
14 14
     cp files/sources.list proto/etc/apt/sources.list
15 15
     chroot proto apt-get update
16
-    chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
17
-    chroot proto pip install `cat pips/*`
16
+    chroot proto apt-get install -y `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
17
+    chroot proto pip install `cat files/pips/*`
18 18
     git clone https://github.com/cloudbuilders/nova.git proto/opt/nova
19 19
     git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx
20 20
     git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC
... ...
@@ -34,14 +34,13 @@ echo "127.0.0.1 localhost $NAME" > $DEST/etc/hosts
34 34
 # copy kernel modules
35 35
 cp -pr /lib/modules/`uname -r` $DEST/lib/modules
36 36
 
37
-# inject stack.sh files
38
-cp -r files $DEST/opt/files
39 37
 
40 38
 # copy openstack installer and requirement lists to a new directory.
41 39
 mkdir -p $DEST/opt
40
+
41
+# inject stack.sh and dependant files
42
+cp -r files $DEST/opt/files
42 43
 cp stack.sh $DEST/opt/stack.sh
43
-cp -r pips $DEST/opt
44
-cp -r apts $DEST/opt
45 44
 
46 45
 # injecting root's public ssh key if it exists
47 46
 if [ -f /root/.ssh/id_rsa.pub ]; then
48 47
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+apache2
1
+libapache2-mod-wsgi
2
+python-dateutil
3
+python-anyjson
0 4
new file mode 100644
... ...
@@ -0,0 +1,13 @@
0
+pep8
1
+pylint
2
+python-pip
3
+screen
4
+unzip
5
+wget
6
+psmisc
7
+git-core
8
+lsof # useful when debugging
9
+openssh-server
10
+vim-nox
11
+locate # useful when debugging
12
+munin
0 13
new file mode 100644
... ...
@@ -0,0 +1,8 @@
0
+python-eventlet
1
+python-routes
2
+python-greenlet
3
+python-argparse
4
+python-sqlalchemy
5
+python-wsgiref
6
+python-pastedeploy
7
+python-xattr
0 8
new file mode 100644
... ...
@@ -0,0 +1,15 @@
0
+python-setuptools
1
+python-dev
2
+python-lxml
3
+python-pastescript
4
+python-pastedeploy
5
+python-paste
6
+sqlite3
7
+python-pysqlite2
8
+python-sqlalchemy
9
+python-webob
10
+python-greenlet
11
+python-routes
12
+libldap2-dev
13
+libsasl2-dev
14
+
0 15
new file mode 100644
... ...
@@ -0,0 +1,35 @@
0
+dnsmasq-base
1
+kpartx
2
+mysql-server
3
+python-mysqldb
4
+kvm
5
+gawk
6
+iptables
7
+ebtables
8
+sqlite3
9
+sudo
10
+kvm
11
+libvirt-bin
12
+vlan
13
+curl
14
+rabbitmq-server
15
+socat # used by ajaxterm
16
+python-mox
17
+python-paste
18
+python-migrate
19
+python-gflags
20
+python-greenlet
21
+python-libvirt
22
+python-libxml2
23
+python-routes
24
+python-netaddr
25
+python-pastedeploy
26
+python-eventlet
27
+python-cheetah
28
+python-carrot
29
+python-tempita
30
+python-sqlalchemy
31
+python-suds
32
+python-lockfile
33
+python-m2crypto
34
+python-boto
0 35
new file mode 100644
... ...
@@ -0,0 +1,18 @@
0
+# a collection of packages that speed up installation as they are dependencies
1
+# of packages we can't install during bootstraping (rabbitmq-server, 
2
+# mysql-server, libvirt-bin)
3
+#
4
+# NOTE: only add packages to this file that aren't needed directly
5
+mysql-common
6
+mysql-client-5.1
7
+erlang-base
8
+erlang-ssl 
9
+erlang-nox
10
+erlang-inets
11
+erlang-mnesia
12
+libhtml-template-perl
13
+gettext-base
14
+libavahi-client3
15
+libxml2-utils
16
+libpciaccess0
17
+libparted0debian1
0 18
new file mode 100644
... ...
@@ -0,0 +1,21 @@
0
+nose==1.0.0
1
+Django==1.3
2
+django-nose==0.1.2
3
+django-mailer
4
+django-registration==0.7
5
+kombu
6
+python-cloudfiles
7
+python-dateutil
8
+routes
9
+webob
10
+sqlalchemy
11
+paste
12
+PasteDeploy
13
+sqlalchemy-migrate
14
+eventlet
15
+xattr
16
+pep8
17
+pylint
18
+
19
+-e git+https://github.com/jacobian/openstack.compute.git#egg=openstack
20
+
0 21
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-nose==1.0.0
2
-Django==1.3
3
-django-nose==0.1.2
4
-django-mailer
5
-django-registration==0.7
6
-kombu
7
-python-cloudfiles
8
-python-dateutil
9
-routes
10
-webob
11
-sqlalchemy
12
-paste
13
-PasteDeploy
14
-sqlalchemy-migrate
15
-eventlet
16
-xattr
17
-pep8
18
-pylint
19
-
20
--e git+https://github.com/jacobian/openstack.compute.git#egg=openstack
21
-
... ...
@@ -21,12 +21,12 @@ if ! grep -q natty /etc/lsb-release; then
21 21
     fi
22 22
 fi
23 23
 
24
-# stack.sh keeps the list of **apt** and **pip** dependencies in files.  
25
-# Additionally we have a few config templates and other useful files useful 
26
-# installation.  They are needed to be located at ``apts``, ``files`` and 
27
-# ``pips`` in the ``DEVSTACK`` directory (next to this script).
28
-DEVSTACK=`pwd`
29
-if [ ! -d $DEVSTACK/apts ] || [ ! -d $DEVSTACK/files ] || [ ! -d $DEVSTACK/pips ]; then
24
+# stack.sh keeps the list of **apt** and **pip** dependencies in external 
25
+# files, along with config templates and other useful files.  You can find these
26
+# in the ``files`` directory (next to this script).  We will reference this 
27
+# directory using the ``DEVSTACK`` variable in this script.
28
+DEVSTACK=`pwd`/files
29
+if [ ! -d $DEVSTACK ]; then
30 30
     echo "ERROR: missing devstack files - did you grab more than just stack.sh?"
31 31
     exit 1
32 32
 fi
... ...
@@ -164,7 +164,7 @@ cd $DASH_DIR/openstack-dashboard; sudo python setup.py develop
164 164
 
165 165
 # Add a useful screenrc.  This isn't required to run openstack but is we do
166 166
 # it since we are going to run the services in screen for simple 
167
-cp $DEVSTACK/files/screenrc ~/.screenrc
167
+cp $DEVSTACK/screenrc ~/.screenrc
168 168
 
169 169
 ## TODO: update current user to allow sudo for all commands in files/sudo/*
170 170
 
... ...
@@ -208,7 +208,7 @@ if [[ "$ENABLED_SERVICES" =~ "dash" ]]; then
208 208
     cd $DASH_DIR/openstack-dashboard
209 209
     
210 210
     # Includes settings for Nixon, to expose munin charts.
211
-    sudo cp $DEVSTACK/files/dash_settings.py local/local_settings.py
211
+    sudo cp $DEVSTACK/dash_settings.py local/local_settings.py
212 212
 
213 213
     dashboard/manage.py syncdb
214 214
 
... ...
@@ -216,12 +216,12 @@ if [[ "$ENABLED_SERVICES" =~ "dash" ]]; then
216 216
     sudo mkdir -p $DASH_DIR/.blackhole
217 217
 
218 218
     ## Configure apache's 000-default to run dashboard
219
-    sudo cp $DEVSTACK/files/000-default.template /etc/apache2/sites-enabled/000-default
219
+    sudo cp $DEVSTACK/000-default.template /etc/apache2/sites-enabled/000-default
220 220
     sudo sed -e "s,%DASH_DIR%,$DASH_DIR,g" -i /etc/apache2/sites-enabled/000-default
221 221
 
222
-    # ``python setup.py develop`` left some files owned by root in ``DASH_DIR`` and
223
-    # others by the original owner.  We need to change the owner to apache so
224
-    # dashboard can run
222
+    # ``python setup.py develop`` left some files owned by root in ``DASH_DIR`` 
223
+    # and others are owned by the user you are using to run this script.  
224
+    # We need to change the owner to apache for dashboard to run.
225 225
     sudo chown -R www-data:www-data $DASH_DIR
226 226
 fi
227 227
 
... ...
@@ -271,7 +271,7 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
271 271
     mysql -u$MYSQL_USER -p$MYSQL_PASS -e 'CREATE DATABASE glance;'
272 272
     # Copy over our glance-registry.conf
273 273
     GLANCE_CONF=$GLANCE_DIR/etc/glance-registry.conf
274
-    cp $DEVSTACK/files/glance-registry.conf $GLANCE_CONF
274
+    cp $DEVSTACK/glance-registry.conf $GLANCE_CONF
275 275
     sudo sed -e "s,%SQL_CONN%,$BASE_SQL_CONN/glance,g" -i $GLANCE_CONF
276 276
 fi
277 277
 
... ...
@@ -367,11 +367,11 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
367 367
 
368 368
     # FIXME (anthony) keystone should use keystone.conf.example
369 369
     KEYSTONE_CONF=$KEYSTONE_DIR/etc/keystone.conf
370
-    cp $DEVSTACK/files/keystone.conf $KEYSTONE_CONF
370
+    cp $DEVSTACK/keystone.conf $KEYSTONE_CONF
371 371
     sudo sed -e "s,%SQL_CONN%,$BASE_SQL_CONN/keystone,g" -i $KEYSTONE_CONF
372 372
 
373 373
     # initialize keystone with default users/endpoints
374
-    BIN_DIR=$KEYSTONE_DIR/bin bash $DEVSTACK/files/keystone_data.sh
374
+    BIN_DIR=$KEYSTONE_DIR/bin bash $DEVSTACK/keystone_data.sh
375 375
 fi
376 376
 
377 377