Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: Ied6c7759af242021ed83e3c60197e74c947bf811
This commit is contained in:
parent
33a84b2602
commit
f42642bd61
@ -30,7 +30,7 @@ class magnum::deps {
|
||||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['magnum::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'magnum' |>
|
||||
~> Anchor['magnum::config::end']
|
||||
|
||||
# On any uwsgi config change, we must restart Magnum API.
|
||||
|
@ -65,6 +65,7 @@ class magnum::policy (
|
||||
file_group => $::magnum::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'magnum',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -33,6 +33,7 @@ describe 'magnum::policy' do
|
||||
:file_group => 'magnum',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'magnum',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('magnum_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'magnum::policy' do
|
||||
:file_group => 'magnum',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'magnum',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('magnum_config').with(
|
||||
:enforce_scope => false,
|
||||
|
Loading…
Reference in New Issue
Block a user