|
...
|
...
|
@@ -3,30 +3,28 @@
|
|
3
|
3
|
# TODO: make dest not hardcoded
|
|
4
|
4
|
|
|
5
|
5
|
NAME=$1
|
|
6
|
|
-DEST="/boxes/$NAME/nfs"
|
|
7
|
|
-
|
|
8
|
|
-mkdir -p /boxes/$NAME
|
|
|
6
|
+DEST="/nfs/$NAME"
|
|
9
|
7
|
|
|
10
|
8
|
# remove old nfs filesystem if one exists
|
|
11
|
9
|
rm -rf $DEST
|
|
12
|
10
|
|
|
13
|
11
|
# build a proto image - natty + packages that will install (optimization)
|
|
14
|
12
|
if [ ! -d nfs ]; then
|
|
15
|
|
- debootstrap natty nfs
|
|
16
|
|
- cp sources.list nfs/etc/apt/sources.list
|
|
17
|
|
- chroot nfs apt-get update
|
|
18
|
|
- chroot nfs apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"`
|
|
19
|
|
- chroot nfs pip install `cat pips/* | cut -d\# -f1`
|
|
20
|
|
- git clone https://github.com/cloudbuilders/nova.git nfs/opt/nova
|
|
21
|
|
- git clone https://github.com/cloudbuilders/openstackx.git nfs/opt/openstackx
|
|
22
|
|
- git clone https://github.com/cloudbuilders/noVNC.git nfs/opt/noVNC
|
|
23
|
|
- git clone https://github.com/cloudbuilders/openstack-dashboard.git nfs/opt/dash
|
|
24
|
|
- git clone https://github.com/cloudbuilders/python-novaclient.git nfs/opt/python-novaclient
|
|
25
|
|
- git clone https://github.com/cloudbuilders/keystone.git nfs/opt/keystone
|
|
26
|
|
- git clone https://github.com/cloudbuilders/glance.git nfs/opt/glance
|
|
|
13
|
+ debootstrap natty proto
|
|
|
14
|
+ cp sources.list proto/etc/apt/sources.list
|
|
|
15
|
+ chroot proto apt-get update
|
|
|
16
|
+ chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"`
|
|
|
17
|
+ chroot proto pip install `cat pips/* | cut -d\# -f1`
|
|
|
18
|
+ git clone https://github.com/cloudbuilders/nova.git proto/opt/nova
|
|
|
19
|
+ git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx
|
|
|
20
|
+ git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC
|
|
|
21
|
+ git clone https://github.com/cloudbuilders/openstack-dashboard.git proto/opt/dash
|
|
|
22
|
+ git clone https://github.com/cloudbuilders/python-novaclient.git proto/opt/python-novaclient
|
|
|
23
|
+ git clone https://github.com/cloudbuilders/keystone.git proto/opt/keystone
|
|
|
24
|
+ git clone https://github.com/cloudbuilders/glance.git proto/opt/glance
|
|
27
|
25
|
fi
|
|
28
|
26
|
|
|
29
|
|
-cp -pr nfs $DEST
|
|
|
27
|
+cp -pr proto $DEST
|
|
30
|
28
|
|
|
31
|
29
|
# set hostname
|
|
32
|
30
|
echo $NAME > $DEST/etc/hostname
|