Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I83d3ff31083dd687c5b2d76c8297b5e74a7caa1a (cherry picked from commit8d4873a3af
) (cherry picked from commitdcacc06e30
)
This commit is contained in:
parent
ae85d3921f
commit
cdd725955d
|
@ -30,7 +30,7 @@ class glance::deps {
|
|||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['glance::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'glance' |>
|
||||
~> Anchor['glance::config::end']
|
||||
|
||||
# On any uwsgi config change, we must restart Glance API.
|
||||
|
|
|
@ -62,6 +62,7 @@ class glance::policy (
|
|||
file_group => $::glance::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'glance',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
|
|
@ -32,6 +32,7 @@ describe 'glance::policy' do
|
|||
:file_group => 'glance',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'glance',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('glance_api_config').with(
|
||||
:enforce_scope => false,
|
||||
|
@ -61,6 +62,7 @@ describe 'glance::policy' do
|
|||
:file_group => 'glance',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'glance',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('glance_api_config').with(
|
||||
:enforce_scope => false,
|
||||
|
|
Loading…
Reference in New Issue