Commit 857331ae authored by David Johnson's avatar David Johnson

Add keystone v2 support for Nova Placement service endpoint creation.

parent b71bc374
......@@ -1012,12 +1012,27 @@ if [ -z "${NOVA_DBPASS}" ]; then
__openstack service create --name placement \
--description "OpenStack Placement API" placement
__openstack endpoint create --region $REGION \
placement public http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement internal http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement admin http://${CONTROLLER}:8778
if [ $KEYSTONEAPIVERSION -lt 3 ]; then
__openstack endpoint create \
--publicurl http://$CONTROLLER:8778 \
--internalurl http://$CONTROLLER:8778 \
--adminurl http://$CONTROLLER:8778 \
--region $REGION placement
elif [ $OSVERSION -lt $OSNEWTON ]; then
__openstack endpoint create --region $REGION \
placement public http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement internal http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement admin http://${CONTROLLER}:8778
else
__openstack endpoint create --region $REGION \
placement public http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement internal http://${CONTROLLER}:8778
__openstack endpoint create --region $REGION \
placement admin http://${CONTROLLER}:8778
fi
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment