diff --git a/defaults/main.yml b/defaults/main.yml index 66656c84..eaafea5a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -499,6 +499,7 @@ horizon_translations_pull: "{{ _horizon_translations_pull }}" # Set arbitrary horizon configuration options horizon_config_overrides: {} +horizon_extra_local_settings: {} # Set overrides for horizon embedded policies # horizon_policy_overrides: diff --git a/releasenotes/notes/horizon_extend_local_settings-9e062b515de94b24.yaml b/releasenotes/notes/horizon_extend_local_settings-9e062b515de94b24.yaml new file mode 100644 index 00000000..29c2d7b4 --- /dev/null +++ b/releasenotes/notes/horizon_extend_local_settings-9e062b515de94b24.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + Implemented variable ``horizon_extra_local_settings`` that allows to + insert arbitrary parameters defined as a regular mapping inside + local_settings.py of Horizon. Parameters will be inserted at the end of + the config file. diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 904f1264..72467c87 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -842,6 +842,10 @@ DEFAULT_THEME = '{{ horizon_default_theme }}' # Set arbitrary horizon configuration options HORIZON_CONFIG.update({{ horizon_config_overrides }}) +{% for key, value in horizon_extra_local_settings.items() %} +{{ key }} = {{ value }} +{% endfor %} + OPENSTACK_KEYSTONE_ADMIN_ROLES = [ {% for item in horizon_keystone_admin_roles %} '{{ item }}',