aboutsummaryrefslogtreecommitdiff
path: root/docker/horizon
diff options
context:
space:
mode:
authorMichal Arbet <michal.arbet@ultimum.io>2021-06-27 14:56:46 +0200
committerMichal Arbet <michal.arbet@ultimum.io>2021-07-01 12:18:27 +0200
commit01d02be25ed043b4541db3ebfc102d013cdc578a (patch)
treee0fd18f08d414264a3aef96cf43e1efca3537223 /docker/horizon
parent8e020c5f86e033d9baba2c80c39f800bbd3cf2de (diff)
downloadkolla-01d02be25ed043b4541db3ebfc102d013cdc578a.tar.gz
kolla-01d02be25ed043b4541db3ebfc102d013cdc578a.zip
Add missing default policy files for debian-binary-horizon
The debian-binary-horizon image is missing the default policies files which should be in /etc/openstack-dashboard/default_policies. By copying everything from /etc/openstack-dashboard/policy into /etc/openstack-dashboard, we get the default policy files, as well as commented out policy files (e.g. cinder_policy.yaml) and the nova_policy.d directory containing api-extensions.yaml. Change was merged for ubuntu in [1] but unfortunatelly not for debian, this trivial patch fixes it also for debian. [1] https://review.opendev.org/c/openstack/kolla/+/794589 Closes-Bug: #1933759 Change-Id: I822d640a251e6ed9f71c76a922513e23e4218418
Diffstat (limited to 'docker/horizon')
-rw-r--r--docker/horizon/Dockerfile.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index ca3d726d1..f4c01ac03 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -83,7 +83,7 @@ RUN sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security.
&& cp -r /usr/share/openstack-dashboard/openstack_dashboard/conf/* /etc/openstack-dashboard \
&& rm /etc/apache2/conf-enabled/openstack-dashboard.conf \
{% else %}
- && cp /etc/openstack-dashboard/policy/*.json /etc/openstack-dashboard \
+ && cp -r /etc/openstack-dashboard/policy/* /etc/openstack-dashboard \
{% endif %}
&& cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \
&& rm /etc/openstack-dashboard/local_settings.py \