From 58ed7e92451ed4b46e128cb54353a82ebbffb693 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 14 Mar 2021 21:27:38 +0900 Subject: [PATCH] Update description about policy settings ... to follow the change in horizon [1] [1] https://review.opendev.org/c/openstack/horizon/+/750134 Change-Id: Id279c979b7cfa0665551f6eb2d6a0418be902052 --- templates/local_settings.py.erb | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/templates/local_settings.py.erb b/templates/local_settings.py.erb index 998ad0f1..1641cabb 100644 --- a/templates/local_settings.py.erb +++ b/templates/local_settings.py.erb @@ -673,12 +673,11 @@ POLICY_FILES_PATH = '/etc/openstack-dashboard' # Having matching policy files on the Horizon and Keystone servers is essential # for normal operation. This holds true for all services and their policy files. #POLICY_FILES = { -# 'identity': 'keystone_policy.json', -# 'compute': 'nova_policy.json', -# 'volume': 'cinder_policy.json', -# 'image': 'glance_policy.json', -# 'orchestration': 'heat_policy.json', -# 'network': 'neutron_policy.json', +# 'identity': 'keystone_policy.yaml', +# 'compute': 'nova_policy.yaml', +# 'volume': 'cinder_policy.yaml', +# 'image': 'glance_policy.yaml', +# 'network': 'neutron_policy.yaml', #} <% if @policy_files.kind_of?(Hash) %> POLICY_FILES = { @@ -688,6 +687,21 @@ POLICY_FILES = { } # POLICY_FILES <% end -%> +# Services for which horizon has extra policies are defined +# in POLICY_DIRS by default. +#POLICY_DIRS = { +# 'compute': ['nova_policy.d'], +# 'volume': ['cinder_policy.d'], +#} + +#DEFAULT_POLICY_FILES = { +# 'identity': 'default_policies/keystone.yaml', +# 'compute': 'default_policies/nova.yaml', +# 'volume': 'default_policies/cinder.yaml', +# 'image': 'default_policies/glance.yaml', +# 'network': 'default_policies/neutron.yaml', +#} + # TODO: (david-lyle) remove when plugins support adding settings. # Note: Only used when trove-dashboard plugin is configured to be used by # Horizon.