Revise setup-service

Revise setup-service about creating endpoint with openstackclient.

Change-Id: Ie286649a671125730ea4df23d6ce39fdff9bf674
This commit is contained in:
lvdongbing 2016-03-14 22:04:19 -04:00
parent 0f3444d506
commit b3bc0459bb
1 changed files with 6 additions and 13 deletions

View File

@ -35,19 +35,12 @@ if [[ -z $SERVICE_ID ]]; then
exit
fi
#openstack endpoint create \
# --adminurl "http://$HOST:$PORT/v1/\$(project_id)s" \
# --publicurl "http://$HOST:$PORT/v1/\$(project_id)s" \
# --internalurl "http://$HOST:$PORT/v1/\$(project_id)s" \
# --region RegionOne \
# bilean
openstack endpoint create bilean admin \
"http://$HOST:$PORT/v1/\$(project_id)s" --region RegionOne
openstack endpoint create bilean public \
"http://$HOST:$PORT/v1/\$(project_id)s" --region RegionOne
openstack endpoint create bilean internal \
"http://$HOST:$PORT/v1/\$(project_id)s" --region RegionOne
openstack endpoint create \
--adminurl "http://$HOST:$PORT/v1/\$(project_id)s" \
--publicurl "http://$HOST:$PORT/v1/\$(project_id)s" \
--internalurl "http://$HOST:$PORT/v1/\$(project_id)s" \
--region RegionOne \
bilean
openstack user create \
--password "$SVC_PASSWD" \