Adds quantum service and endpoint to keystone if quantum is enabled.
Change-Id: I41eac84a48e8e716b77b7c874244c626b5df3006
diff --git a/files/keystone_data.sh b/files/keystone_data.sh
index 408e36d..cc2421c 100755
--- a/files/keystone_data.sh
+++ b/files/keystone_data.sh
@@ -32,7 +32,6 @@
# Add Roles to Users in Tenants
-
keystone add-user-role $ADMIN_USER $ADMIN_ROLE $ADMIN_TENANT
keystone add-user-role $DEMO_USER $MEMBER_ROLE $DEMO_TENANT
keystone add-user-role $DEMO_USER $SYSADMIN_ROLE $DEMO_TENANT
@@ -70,6 +69,12 @@
--type="object-store" \
--description="Swift Service"
fi
+if [[ "$ENABLED_SERVICES" =~ "quantum" ]]; then
+ keystone service-create \
+ --name=quantum \
+ --type=network \
+ --description="Quantum Service"
+fi
# create ec2 creds and parse the secret and access key returned
RESULT=`keystone ec2-create-credentials --tenant_id=$ADMIN_TENANT --user_id=$ADMIN_USER`