commit a7a970b061d5981f9be43933b5af2b5ffffa3d79 Author: Corey Wright Date: Wed Aug 10 16:50:26 2016 -0500 Add variable override for OPENSTACK_KEYSTONE_ADMIN_ROLES As Horizon treats admins differently and can't discern what roles are administrative in nature, we have to tell it if there are roles beyond/besides "admin". If not overriden by the user, then the default is `['admin']` as seen in the code: https://github.com/openstack/horizon/blob/stable/mitaka/openstack_dashboard/utils/identity.py#L20-L25. diff --git a/defaults/main.yml b/defaults/main.yml index 7f68269..071dbce 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/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 85b2a4e..bdf528e 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 %} +]