Skip to content
Snippets Groups Projects
Commit f9c814a1 authored by Michal Arbet's avatar Michal Arbet
Browse files

Fix STATIC_ROOT for Debian, Ubuntu

STATIC_ROOT in local_settings.py should be configured
to path which is also configured in apache's config.

For debian, ubuntu binary setup it is
/var/lib/openstack-dashboard/static.

Reason why it is "accidentaly" working is:

For debian package:
Package is overriding STATIC_ROOT in
/etc/openstack-dashboard/local_settings.d/_0003_debian_static_root.py.
But this is going to be removed from settings in
https://review.opendev.org/733607.

For ubuntu package:
Ubuntu package is adding patch to package which is including
PYTHON_PATH do /usr/share/openstack-dashboard/
And also they are creating several dirty symlinks to get it working.

This patch is fixing this behaviour more clearly.

Change-Id: I9862ac7ab462ca9018b684d63f26458ddda9f73a
parent cb156b92
No related branches found
No related tags found
No related merge requests found
...@@ -845,6 +845,9 @@ KEY_MANAGER = { ...@@ -845,6 +845,9 @@ KEY_MANAGER = {
'project_domain_name': '{{ default_project_domain_name }}' 'project_domain_name': '{{ default_project_domain_name }}'
} }
{% endif %} {% endif %}
{% if kolla_base_distro in ['debian', 'ubuntu'] and horizon_install_type == 'binary' %}
STATIC_ROOT = "/var/lib/openstack-dashboard/static/"
{% endif %}
# Allow operators to overwrite variables (LP: #1769970). # Allow operators to overwrite variables (LP: #1769970).
from .custom_local_settings import * from .custom_local_settings import *
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment