Merge "Add per module policy service refresh"
This commit is contained in:
commit
915a4a9c26
@ -44,7 +44,7 @@ class cinder::deps {
|
||||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['cinder::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'cinder' |>
|
||||
~> Anchor['cinder::config::end']
|
||||
|
||||
# On any uwsgi config change, we must restart Cinder API.
|
||||
|
@ -65,6 +65,7 @@ class cinder::policy (
|
||||
file_group => $::cinder::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'cinder',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -33,6 +33,7 @@ describe 'cinder::policy' do
|
||||
:file_group => 'cinder',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'cinder',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('cinder_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'cinder::policy' do
|
||||
:file_group => 'cinder',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'cinder',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('cinder_config').with(
|
||||
:enforce_scope => false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user