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