summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlan Pevec <apevec@redhat.com>2012-09-17 20:51:49 +0200
committerAlan Pevec <apevec@redhat.com>2012-09-17 20:51:49 +0200
commit7b0a26446f312d8061594fc8d2970fe77499bc4f (patch)
tree908ac2b7d2a5f24d419ff8c8910a4bf929a1c345 /tools
parent5d541057d779f6a222c63604f549ba15110d7881 (diff)
downloadkeystone-7b0a26446f312d8061594fc8d2970fe77499bc4f.tar.gz
keystone-7b0a26446f312d8061594fc8d2970fe77499bc4f.tar.xz
keystone-7b0a26446f312d8061594fc8d2970fe77499bc4f.zip
add Swift endpoint in sample data
Change-Id: Idb1274adbcc28ccddc737d900062f5b8a5f81791
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 18419a8c..ced89dc4 100755
--- a/tools/sample_data.sh
+++ b/tools/sample_data.sh
@@ -207,9 +207,10 @@ keystone service-create --name="horizon" \
--description="OpenStack Dashboard"
if [[ -n "$ENABLE_SWIFT" ]]; then
+ SWIFT_SERVICE=$(get_id \
keystone service-create --name=swift \
--type="object-store" \
- --description="Swift Service"
+ --description="Swift Service")
SWIFT_USER=$(get_id keystone user-create --name=swift \
--pass="$SERVICE_PASSWORD" \
--tenant_id $SERVICE_TENANT \
@@ -217,6 +218,12 @@ if [[ -n "$ENABLE_SWIFT" ]]; then
keystone user-role-add --tenant_id $SERVICE_TENANT \
--user_id $SWIFT_USER \
--role_id $ADMIN_ROLE
+ if [[ -n "$ENABLE_ENDPOINTS" ]]; then
+ keystone endpoint-create --region RegionOne --service_id $SWIFT_SERVICE \
+ --publicurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s' \
+ --adminurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s' \
+ --internalurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s'
+ fi
fi
if [[ -n "$ENABLE_QUANTUM" ]]; then