diff --git a/defaults/main.yml b/defaults/main.yml index 7f68269b..071dbcec 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -252,3 +252,6 @@ horizon_role_project_group: horizon_all # Set arbitrary horizon configuration options horizon_config_overrides: {} + +horizon_keystone_admin_roles: + - admin diff --git a/releasenotes/notes/add-keystone-admin-roles-setting-83198a721c64ee3c.yaml b/releasenotes/notes/add-keystone-admin-roles-setting-83198a721c64ee3c.yaml new file mode 100644 index 00000000..ec2f586d --- /dev/null +++ b/releasenotes/notes/add-keystone-admin-roles-setting-83198a721c64ee3c.yaml @@ -0,0 +1,5 @@ +--- +features: + - The ``horizon_keystone_admin_roles`` variable is added to support the + ``OPENSTACK_KEYSTONE_ADMIN_ROLES`` list in the horizon_local_settings.py + file. diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 85b2a4e7..bdf528ea 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -738,3 +738,9 @@ DEFAULT_THEME = '{{ horizon_default_theme }}' # Set arbitrary horizon configuration options HORIZON_CONFIG.update({{ horizon_config_overrides }}) + +OPENSTACK_KEYSTONE_ADMIN_ROLES = [ +{% for item in horizon_keystone_admin_roles %} + '{{ item }}', +{% endfor %} +]