| ... | ... |
@@ -97,8 +97,8 @@ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers |
| 97 | 97 |
# Install and run stack.sh |
| 98 | 98 |
apt-get update |
| 99 | 99 |
apt-get -y --force-yes install git-core vim-nox sudo |
| 100 |
-su -c "git clone git://github.com/cloudbuilders/nfs-stack.git /opt/nfs-stack" stack |
|
| 101 |
-su -c "cd /opt/nfs-stack && ./stack.sh" stack |
|
| 100 |
+su -c "git clone git://github.com/cloudbuilders/nfs-stack.git ~/nfs-stack" stack |
|
| 101 |
+su -c "cd ~/nfs-stack && ./stack.sh" stack |
|
| 102 | 102 |
EOF |
| 103 | 103 |
|
| 104 | 104 |
chmod 700 $INSTALL_SH |
| ... | ... |
@@ -34,6 +34,7 @@ KEYSTONE_DIR=$DEST/keystone |
| 34 | 34 |
NOVACLIENT_DIR=$DEST/python-novaclient |
| 35 | 35 |
API_DIR=$DEST/openstackx |
| 36 | 36 |
NOVNC_DIR=$DEST/noVNC |
| 37 |
+ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash |
|
| 37 | 38 |
|
| 38 | 39 |
# Use the first IP unless an explicit is set by ``HOST_IP`` environment variable |
| 39 | 40 |
if [ ! -n "$HOST_IP" ]; then |
| ... | ... |
@@ -248,9 +249,13 @@ rm -f $GLANCE_DIR/glance.sqlite |
| 248 | 248 |
|
| 249 | 249 |
# nova api crashes if we start it with a regular screen command, |
| 250 | 250 |
# so send the start command by forcing text into the window. |
| 251 |
+ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash |
|
| 251 | 252 |
function screen_it {
|
| 252 | 253 |
screen -S nova -X screen -t $1 |
| 253 |
- screen -S nova -p $1 -X stuff "$2$NL" |
|
| 254 |
+ # only run the services specified in $ENABLED_SERVICES |
|
| 255 |
+ if [[ $ENABLED_SERVICES == *$2* ]] then |
|
| 256 |
+ screen -S nova -p $1 -X stuff "$2$NL" |
|
| 257 |
+ fi |
|
| 254 | 258 |
} |
| 255 | 259 |
|
| 256 | 260 |
screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf" |