Merge "Add per module policy service refresh"
This commit is contained in:
commit
6e2515b4fd
@ -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.
|
||||||
|
@ -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 })
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user