Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.
Change-Id: I42153ec891feb569a9614166104be5382d893f96
(cherry picked from commit c38323518b
)
This commit is contained in:
parent
0a77550365
commit
dbd8e47e31
@ -30,7 +30,7 @@ class barbican::deps {
|
||||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['barbican::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'barbican' |>
|
||||
~> Anchor['barbican::config::end']
|
||||
|
||||
# barbican-api-paste.ini config should occur in the config block also.
|
||||
|
@ -67,6 +67,7 @@ class barbican::policy (
|
||||
file_group => $::barbican::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'barbican',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -33,6 +33,7 @@ describe 'barbican::policy' do
|
||||
:file_group => 'barbican',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'barbican',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('barbican_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'barbican::policy' do
|
||||
:file_group => 'barbican',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'barbican',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('barbican_config').with(
|
||||
:enforce_scope => false,
|
||||
|
Loading…
Reference in New Issue
Block a user