summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/sample_data.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/sample_data.sh b/tools/sample_data.sh
index 3dda911d..18419a8c 100755
--- a/tools/sample_data.sh
+++ b/tools/sample_data.sh
@@ -220,9 +220,10 @@ if [[ -n "$ENABLE_SWIFT" ]]; then
fi
if [[ -n "$ENABLE_QUANTUM" ]]; then
+ QUANTUM_SERVICE=$(get_id \
keystone service-create --name=quantum \
--type=network \
- --description="Quantum Service"
+ --description="Quantum Service")
QUANTUM_USER=$(get_id keystone user-create --name=quantum \
--pass="$SERVICE_PASSWORD" \
--tenant_id $SERVICE_TENANT \
@@ -230,6 +231,12 @@ if [[ -n "$ENABLE_QUANTUM" ]]; then
keystone user-role-add --tenant_id $SERVICE_TENANT \
--user_id $QUANTUM_USER \
--role_id $ADMIN_ROLE
+ if [[ -n "$ENABLE_ENDPOINTS" ]]; then
+ keystone endpoint-create --region RegionOne --service_id $QUANTUM_SERVICE \
+ --publicurl http://localhost:9696 \
+ --adminurl http://localhost:9696 \
+ --internalurl http://localhost:9696
+ fi
fi