Merge "Adds ability to enable domain dropdown list on login page"

This commit is contained in:
Zuul 2018-12-12 17:29:13 +00:00 committed by Gerrit Code Review
commit 0d44c7dca5
2 changed files with 9 additions and 1 deletions

View File

@ -250,6 +250,10 @@ horizon_keystone_endpoint: "{{ keystone_service_internalurl }}"
## Horizon Multi-Domain Support
# these variables should only be changed if horizon_keystone_endpoint is a Keystone v3 API endpoint
horizon_keystone_multidomain_support: False
# It is strongly advised NOT to enable dropdown for public clouds, as advertising enabled domains
# to unauthenticated customers irresponsibly exposes private information.
horizon_keystone_multidomain_dropdown: False
horizon_keystone_default_domain: Default
### Set the cacert pem for Keystone if you'd like Horizon to verify it.

View File

@ -76,7 +76,11 @@ OPENSTACK_API_VERSIONS = {
# Set this to True if running on multi-domain model. When this is enabled, it
# will require user to enter the Domain name in addition to username for login.
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = {{ horizon_keystone_multidomain_support }}
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = {{ horizon_keystone_multidomain_support | bool }}
{% if horizon_keystone_multidomain_support | bool %}
OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN = {{ horizon_keystone_multidomain_dropdown | bool }}
{% endif %}
{% if not horizon_keystone_multidomain_support | bool %}
# Overrides the default domain used when running on single-domain model