diff --git a/files/keystone_data.sh b/files/keystone_data.sh index 7da07aaa9f..9520b177c6 100755 --- a/files/keystone_data.sh +++ b/files/keystone_data.sh @@ -262,6 +262,21 @@ if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then 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 if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then