Merge pull request #58 from andymcc/horizon_internal

Set the default ENDPOINT TYPE to internalURL for Horizon
This commit is contained in:
Kevin Carter 2014-09-03 10:03:33 -05:00
commit ffda3fed0f
3 changed files with 22 additions and 1 deletions

View File

@ -26,6 +26,8 @@
- openstack_common
- openstack_openrc
- horizon_common
vars_files:
- vars/openstack_service_vars/horizon.yml
- hosts: horizon_all[0]
user: root

View File

@ -223,7 +223,7 @@ IMAGE_CUSTOM_PROPERTY_TITLES = {
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is 'publicURL'.
#OPENSTACK_ENDPOINT_TYPE = "publicURL"
OPENSTACK_ENDPOINT_TYPE = " {{ horizon_endpoint_type }} "
# SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the
# case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints

View File

@ -0,0 +1,19 @@
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The variables file used by the playbooks in the nova-api-ec2 group.
# These don't have to be explicitly imported by vars_files: they are autopopulated.
horizon_endpoint_type: internalURL