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