diff options
author | Alan Pevec <apevec@redhat.com> | 2012-09-13 14:28:12 +0200 |
---|---|---|
committer | Alan Pevec <apevec@redhat.com> | 2012-09-13 14:37:06 +0200 |
commit | 5d541057d779f6a222c63604f549ba15110d7881 (patch) | |
tree | d1c7b796e800e48a271b667529c8bb9e7f989ecd /tools | |
parent | 8c15b0a35db43fca5cc3c13f31b483eb2a8c2132 (diff) | |
download | keystone-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-x | tools/sample_data.sh | 9 |
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 |