Commit ca1b5647 authored by David Johnson's avatar David Johnson

Allow gnocchi endpoints to be keystone v2.

parent e823d164
......@@ -2910,12 +2910,20 @@ if [ -z "${CEILOMETER_DBPASS}" ]; then
__openstack service create --name gnocchi \
--description "OpenStack Metric Service" metric
__openstack endpoint create --region $REGION \
metric public http://${CONTROLLER}:8041
__openstack endpoint create --region $REGION \
metric internal http://${CONTROLLER}:8041
__openstack endpoint create --region $REGION \
metric admin http://${CONTROLLER}:8041
if [ $KEYSTONEAPIVERSION -lt 3 ]; then
__openstack endpoint create \
--publicurl http://$CONTROLLER:8041 \
--internalurl http://$CONTROLLER:8041 \
--adminurl http://$CONTROLLER:8041 \
--region $REGION metric
else
__openstack endpoint create --region $REGION \
metric public http://${CONTROLLER}:8041
__openstack endpoint create --region $REGION \
metric internal http://${CONTROLLER}:8041
__openstack endpoint create --region $REGION \
metric admin http://${CONTROLLER}:8041
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