Merge "Add per module policy service refresh"

This commit is contained in:
Zuul 2023-06-26 15:24:24 +00:00 committed by Gerrit Code Review
commit 6e2515b4fd
3 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class barbican::deps {
# policy config should occur in the config block also. # policy config should occur in the config block also.
Anchor['barbican::config::begin'] Anchor['barbican::config::begin']
-> Openstacklib::Policy<||> -> Openstacklib::Policy<| tag == 'barbican' |>
~> Anchor['barbican::config::end'] ~> Anchor['barbican::config::end']
# barbican-api-paste.ini config should occur in the config block also. # barbican-api-paste.ini config should occur in the config block also.

View File

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

View File

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