Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I83d3ff31083dd687c5b2d76c8297b5e74a7caa1a
This commit is contained in:
parent
2912393664
commit
8d4873a3af
|
@ -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.
|
||||
|
|
|
@ -65,6 +65,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 })
|
||||
|
|
|
@ -33,6 +33,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,
|
||||
|
@ -63,6 +64,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