Merge "[horizon] Allow to pass any setting to horizon local_settings.py"

This commit is contained in:
Zuul 2020-08-24 17:55:17 +00:00 committed by Gerrit Code Review
commit 289e3ff6f8

View File

@ -223,6 +223,8 @@ conf:
idp: "myidp2"
protocol: "saml2"
log_level: "DEBUG"
# Pass any settings to the end of local_settings.py
raw: {}
template: |
import os
@ -922,6 +924,10 @@ conf:
DISALLOW_IFRAME_EMBED = {{ .Values.conf.horizon.local_settings.config.disallow_iframe_embed }}
STATIC_ROOT = '/var/www/html/horizon'
{{- range $option, $value := .Values.conf.horizon.local_settings.config.raw }}
{{ $option }} = {{ toJson $value }}
{{- end }}
policy:
ceilometer:
context_is_admin: 'role:admin'