Merge "Add per module policy service refresh"

This commit is contained in:
Zuul 2023-07-12 09:27:40 +00:00 committed by Gerrit Code Review
commit 3be4016460
3 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class keystone::deps {
# policy config should occur in the config block also. # policy config should occur in the config block also.
Anchor['keystone::config::begin'] Anchor['keystone::config::begin']
-> Openstacklib::Policy<||> -> Openstacklib::Policy<| tag == 'keystone' |>
~> Anchor['keystone::config::end'] ~> Anchor['keystone::config::end']
# Support packages need to be installed in the install phase, but we don't # Support packages need to be installed in the install phase, but we don't

View File

@ -65,6 +65,7 @@ class keystone::policy (
file_group => $::keystone::params::group, file_group => $::keystone::params::group,
file_format => 'yaml', file_format => 'yaml',
purge_config => $purge_config, purge_config => $purge_config,
tag => 'keystone',
} }
create_resources('openstacklib::policy', { $policy_path => $policy_parameters }) create_resources('openstacklib::policy', { $policy_path => $policy_parameters })

View File

@ -33,6 +33,7 @@ describe 'keystone::policy' do
:file_group => 'keystone', :file_group => 'keystone',
:file_format => 'yaml', :file_format => 'yaml',
:purge_config => false, :purge_config => false,
:tag => 'keystone',
) )
is_expected.to contain_oslo__policy('keystone_config').with( is_expected.to contain_oslo__policy('keystone_config').with(
:enforce_scope => false, :enforce_scope => false,
@ -63,6 +64,7 @@ describe 'keystone::policy' do
:file_group => 'keystone', :file_group => 'keystone',
:file_format => 'yaml', :file_format => 'yaml',
:purge_config => true, :purge_config => true,
:tag => 'keystone',
) )
is_expected.to contain_oslo__policy('keystone_config').with( is_expected.to contain_oslo__policy('keystone_config').with(
:enforce_scope => false, :enforce_scope => false,