heat/bin/cinder-keystone-setup
Jeff Peeler 0a37f56972 Change install scripts to use cinder
Fixes bug #1073164

Change-Id: Id483b028d19dbbc30984299120b87fd020f19903
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2013-02-04 14:33:36 -05:00

18 lines
483 B
Bash
Executable File

#!/bin/bash
set +e
SERVICE_PASSWORD='servicepass'
CINDER_USERNAME='cinder'
source `dirname $0`/heat-keystone-setup
ADMIN_ROLE=$(get_data 2 admin 1 keystone role-list)
SERVICE_TENANT=$(get_data 2 service 1 keystone tenant-list)
CINDER_USERID=$(get_user $CINDER_USERNAME)
add_role $CINDER_USERID $SERVICE_TENANT $ADMIN_ROLE $CINDER_USERNAME
CINDER_SERVICE=$(get_service cinder volume "Cinder Volume Service")
add_endpoint $CINDER_SERVICE 'http://localhost:8776/v1/$(tenant_id)s'