summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlan Pevec <apevec@redhat.com>2012-09-13 14:28:12 +0200
committerAlan Pevec <apevec@redhat.com>2012-09-13 14:37:06 +0200
commit5d541057d779f6a222c63604f549ba15110d7881 (patch)
treed1c7b796e800e48a271b667529c8bb9e7f989ecd /tools
parent8c15b0a35db43fca5cc3c13f31b483eb2a8c2132 (diff)
downloadkeystone-5d541057d779f6a222c63604f549ba15110d7881.tar.gz
keystone-5d541057d779f6a222c63604f549ba15110d7881.tar.xz
keystone-5d541057d779f6a222c63604f549ba15110d7881.zip
add Quantum endpoint in sample data
Change-Id: Icd8166efec04e4adc18ecf7c96d43fbc4962cbeb
Diffstat (limited to 'tools')
-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