Horizon configuration to support domains dropdown
An openstack-ansible deployment does not have options to set the local_settings.py params
for Horizon to support Keystone V3 multiple domains dropdown menu and its variants to choose.
These options in local_settings.py are:
OPENSTACK_KEYSTONE_DOMAIN_CHOICES - default value to "(('Default', 'Default'))"
Change-Id: I9f1b8e4c6f5b4fe2601e5ee1dacf90bded60f93d
Closes-Bug: 1795788
(cherry picked from commit d86285b377
)
This commit is contained in:
parent
e4e2fcf420
commit
e3326b7708
|
@ -254,6 +254,11 @@ horizon_keystone_multidomain_dropdown: False
|
|||
|
||||
horizon_keystone_default_domain: Default
|
||||
|
||||
# Option to set the available domains to choose from. This is
|
||||
# a list of pairs whose first value is the domain name and the
|
||||
# second is the display name.
|
||||
horizon_keystone_multidomain_choices: "(('{{ horizon_keystone_default_domain }}', '{{ horizon_keystone_default_domain }}'))"
|
||||
|
||||
# Enable/disable v2 openrc file download in horizon.
|
||||
horizon_show_keystone_v2_rc: True
|
||||
|
||||
|
|
|
@ -81,14 +81,13 @@ OPENSTACK_API_VERSIONS = {
|
|||
# will require user to enter the Domain name in addition to username for login.
|
||||
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
|
||||
# with Keystone V3. All entities will be created in the default domain.
|
||||
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "{{ horizon_keystone_default_domain }}"
|
||||
{% else %}
|
||||
OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN = {{ horizon_keystone_multidomain_dropdown | bool }}
|
||||
OPENSTACK_KEYSTONE_DOMAIN_CHOICES = {{ horizon_keystone_multidomain_choices }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue