@@ -278,6 +278,20 @@ conf:
278278 enabled : False
279279 version : " 5.1"
280280 dashboard_name : " tf_dashboard.overrides"
281+ installed_apps :
282+ - openstack_dashboard
283+ - django.contrib.contenttypes
284+ - django.contrib.auth
285+ - django.contrib.sessions
286+ - django.contrib.messages
287+ - django.contrib.staticfiles
288+ - django.contrib.humanize
289+ - debreach
290+ - compressor
291+ - horizon
292+ - openstack_auth
293+ session :
294+ engine : " django.contrib.sessions.backends.db"
281295 cache :
282296 backend : " django.core.cache.backends.memcached.MemcachedCache"
283297 # Pass any settings to the end of local_settings.py
@@ -427,29 +441,21 @@ conf:
427441 'KEY_PREFIX': '{{ (split ":" .Values.images.tags.horizon)._1 }}'
428442 }
429443 }
444+ INSTALLED_APPS = {{ toJson .Values.conf.horizon.local_settings.config.installed_apps }}
430445 # DATABASES section is commented because we don't use mysql as horizon backend
431- #DATABASES = {
432- # 'default': {
433- # # Database configuration here
434- # 'ENGINE': 'django.db.backends.mysql',
435- # 'NAME': '{{ .Values.endpoints.oslo_db.path | base }}',
436- # 'USER': '{{ .Values.endpoints.oslo_db.auth.horizon.username }}',
437- # 'PASSWORD': '{{ .Values.endpoints.oslo_db.auth.horizon.password }}',
438- # 'HOST': '{{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}',
439- # 'default-character-set': 'utf8',
440- # {{- if .Values.manifests.certificates }}
441- # 'OPTIONS':{
442- # 'ssl': {
443- # 'ca': '/etc/mysql/certs/ca.crt',
444- # 'cert': '/etc/mysql/certs/tls.crt',
445- # 'key': '/etc/mysql/certs/tls.key'
446- # }
447- # },
448- # {{- end }}
449- # 'PORT': '{{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}'
450- # }
451- #}
452- SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
446+ DATABASES = {
447+ 'default': {
448+ # Database configuration here
449+ 'ENGINE': 'django.db.backends.mysql',
450+ 'NAME': '{{ .Values.endpoints.oslo_db.path | base }}',
451+ 'USER': '{{ .Values.endpoints.oslo_db.auth.horizon.username }}',
452+ 'PASSWORD': '{{ .Values.endpoints.oslo_db.auth.horizon.password }}',
453+ 'HOST': '{{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}',
454+ 'default-character-set': 'utf8',
455+ 'PORT': '{{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}'
456+ }
457+ }
458+ SESSION_ENGINE = '{{ .Values.conf.horizon.local_settings.config.session.engine }}'
453459
454460 # Send email to the console by default
455461 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
@@ -1405,8 +1411,8 @@ manifests:
14051411 configmap_oslo_policy : true
14061412 deployment : true
14071413 ingress_api : true
1408- job_db_init : false
1409- job_db_sync : false
1414+ job_db_init : true
1415+ job_db_sync : true
14101416 job_db_drop : false
14111417 job_image_repo_sync : true
14121418 pdb : true
0 commit comments