Set the default ENDPOINT TYPE to internalURL for Horizon

Default is publicURL which will fail if internal server doesn't have
access via the firewall.

All this value to be overridden via the "horizon" service vars.

Fixes #57
This commit is contained in:
Andy McCrae 2014-09-02 17:28:22 +01:00
parent 8f7be6fe0c
commit f6a8bcc284
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