Add missing default policy files for ubuntu-binary-horizon
The ubuntu-binary-horizon image is missing the default policies files which should be in /etc/openstack-dashboard/default_policies. By copying everything from /usr/share/openstack-dashboard/openstack_dashboard/conf 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-Id: I3c6fdcb9b7dd7443a7755599f7e4ee59f67e0a91 Closes-Bug: #1930586
This commit is contained in:
parent
5338b559ea
commit
740448a658
@ -80,7 +80,7 @@ RUN sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security.
|
||||
&& ln -s ../mods-available/headers.load /etc/apache2/mods-enabled/headers.load \
|
||||
&& ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/expires.load \
|
||||
{% if base_distro == 'ubuntu' %}
|
||||
&& cp /usr/share/openstack-dashboard/openstack_dashboard/conf/*.json /etc/openstack-dashboard \
|
||||
&& 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 \
|
||||
|
Loading…
Reference in New Issue
Block a user