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