From 3e2b1744edf43a924c381638fea48894db7b52e5 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 28 Oct 2011 12:20:07 -0700 Subject: [PATCH 1/2] allow instances path to be set in the script --- stack.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 155a3dd..f0bc377 100755 --- a/stack.sh +++ b/stack.sh @@ -120,7 +120,7 @@ if [[ $EUID -eq 0 ]]; then fi exit 1 else - # Our user needs passwordless priviledges for certain commands which nova + # Our user needs passwordless priviledges for certain commands which nova # uses internally. # Natty uec images sudoers does not have a '#includedir'. add one. sudo grep -q "^#includedir.*/etc/sudoers.d" /etc/sudoers || @@ -625,6 +625,9 @@ add_nova_flag "--rabbit_host=$RABBIT_HOST" add_nova_flag "--rabbit_password=$RABBIT_PASSWORD" add_nova_flag "--glance_api_servers=$GLANCE_HOSTPORT" add_nova_flag "--flat_network_bridge=$FLAT_NETWORK_BRIDGE" +if [ -n "$INSTANCES_PATH" ]; then + add_nova_flag "--instances_path=$INSTANCES_PATH" +fi if [ -n "$FLAT_INTERFACE" ]; then add_nova_flag "--flat_interface=$FLAT_INTERFACE" fi From e72bdb094503a04dd8f225368e7d7d34b27680c5 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 28 Oct 2011 13:34:38 -0700 Subject: [PATCH 2/2] add the fi --- stack.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stack.sh b/stack.sh index 80605de..ce8ee9e 100755 --- a/stack.sh +++ b/stack.sh @@ -632,6 +632,7 @@ add_nova_flag "--rabbit_password=$RABBIT_PASSWORD" add_nova_flag "--glance_api_servers=$GLANCE_HOSTPORT" if [ -n "$INSTANCES_PATH" ]; then add_nova_flag "--instances_path=$INSTANCES_PATH" +fi if [ -n "$MULTI_HOST" ]; then add_nova_flag "--multi_host=$MULTI_HOST" add_nova_flag "--send_arp_for_ha=1"