Support policy-in-code and deprecated policy
This change adds support for policy-in-code and deprecated policy following the change in horizon. Depends-on: https://review.opendev.org/750134 Change-Id: I408af56e6a54b135d38a486101b4bb3108d4f0d5
This commit is contained in:
parent
7cb7f1c234
commit
89a90ff977
devstack
manila_ui
releasenotes/notes
@ -28,6 +28,8 @@ if is_service_enabled horizon && is_service_enabled manila && is_service_enabled
|
||||
echo_summary "Configuring Manila UI"
|
||||
cp -a ${MANILA_UI_DIR}/manila_ui/local/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
|
||||
cp -a ${MANILA_UI_DIR}/manila_ui/local/local_settings.d/* ${DEST}/horizon/openstack_dashboard/local/local_settings.d/
|
||||
cp -a ${MANILA_UI_DIR}/manila_ui/conf/manila_policy.yaml ${DEST}/horizon/openstack_dashboard/conf/
|
||||
cp -a ${MANILA_UI_DIR}/manila_ui/conf/default_policies/manila.yaml ${DEST}/horizon/openstack_dashboard/conf/default_policies/
|
||||
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||
# no-op
|
||||
:
|
||||
|
2360
manila_ui/conf/default_policies/manila.yaml
Normal file
2360
manila_ui/conf/default_policies/manila.yaml
Normal file
File diff suppressed because it is too large
Load Diff
1906
manila_ui/conf/manila_policy.yaml
Normal file
1906
manila_ui/conf/manila_policy.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,11 @@ from django.conf import settings
|
||||
|
||||
|
||||
settings.POLICY_FILES.update({
|
||||
'share': 'manila_policy.json',
|
||||
'share': 'manila_policy.yaml',
|
||||
})
|
||||
|
||||
settings.DEFAULT_POLICY_FILES.update({
|
||||
'share': 'default_policies/manila.yaml'
|
||||
})
|
||||
|
||||
# Sample
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The default configuration file has been updated and now includes
|
||||
the required parameters to use the new policy-in-code feature in Horizon.
|
||||
Please refer to the release note and documentation of Horizon to find
|
||||
details about this feature.
|
Loading…
x
Reference in New Issue
Block a user