...
|
...
|
@@ -470,11 +470,15 @@ fi
|
470
|
470
|
# Nova
|
471
|
471
|
# ----
|
472
|
472
|
|
473
|
|
-# We are going to use the sample http middleware configuration from the keystone
|
474
|
|
-# project to launch nova. This paste config adds the configuration required
|
475
|
|
-# for nova to validate keystone tokens - except we need to switch the config
|
476
|
|
-# to use our service token instead (instead of the invalid token 999888777666).
|
477
|
|
-sudo sed -e "s,999888777666,$SERVICE_TOKEN,g" -i $KEYSTONE_DIR/examples/paste/nova-api-paste.ini
|
|
473
|
+if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
|
|
474
|
+ # We are going to use the sample http middleware configuration from the
|
|
475
|
+ # keystone project to launch nova. This paste config adds the configuration
|
|
476
|
+ # required for nova to validate keystone tokens - except we need to switch
|
|
477
|
+ # the config to use our service token instead (instead of the invalid token
|
|
478
|
+ # 999888777666).
|
|
479
|
+ cp $KEYSTONE_DIR/examples/paste/nova-api-paste.ini $NOVA_DIR/bin
|
|
480
|
+ sed -e "s,999888777666,$SERVICE_TOKEN,g" -i $NOVA_DIR/bin/nova-api-paste.ini
|
|
481
|
+fi
|
478
|
482
|
|
479
|
483
|
if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
480
|
484
|
|
...
|
...
|
@@ -591,7 +595,7 @@ add_nova_flag "--libvirt_type=$LIBVIRT_TYPE"
|
591
|
591
|
add_nova_flag "--osapi_extensions_path=$OPENSTACKX_DIR/extensions"
|
592
|
592
|
add_nova_flag "--vncproxy_url=http://$HOST_IP:6080"
|
593
|
593
|
add_nova_flag "--vncproxy_wwwroot=$NOVNC_DIR/"
|
594
|
|
-add_nova_flag "--api_paste_config=$KEYSTONE_DIR/examples/paste/nova-api-paste.ini"
|
|
594
|
+add_nova_flag "--api_paste_config=$NOVA_DIR/bint/nova-api-paste.ini"
|
595
|
595
|
add_nova_flag "--image_service=nova.image.glance.GlanceImageService"
|
596
|
596
|
add_nova_flag "--ec2_dmz_host=$EC2_DMZ_HOST"
|
597
|
597
|
add_nova_flag "--rabbit_host=$RABBIT_HOST"
|