Merge "Add ceilometer-api to service catalog"

This commit is contained in:
Jenkins 2012-10-26 15:31:36 +00:00 committed by Gerrit Code Review
commit c6b9fcaed1

View File

@ -262,6 +262,21 @@ if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then
fi fi
fi fi
if [[ "$ENABLED_SERVICES" =~ "ceilometer-api" ]]; then
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
CEILOMETER_SERVICE=$(get_id keystone service-create \
--name=ceilometer \
--type=metering \
--description="Ceilometer Service")
keystone endpoint-create \
--region RegionOne \
--service_id $CEILOMETER_SERVICE \
--publicurl "http://$SERVICE_HOST:8777/" \
--adminurl "http://$SERVICE_HOST:8777/" \
--internalurl "http://$SERVICE_HOST:8777/"
fi
fi
# EC2 # EC2
if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then