Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: Id77056322ad610006ac0f216870d679b250ab702
This commit is contained in:
parent
6d2b3f4d04
commit
7d5258c9a9
@ -34,7 +34,7 @@ class zaqar::deps {
|
|||||||
|
|
||||||
# policy config should occur in the config block also.
|
# policy config should occur in the config block also.
|
||||||
Anchor['zaqar::config::begin']
|
Anchor['zaqar::config::begin']
|
||||||
-> Openstacklib::Policy<||>
|
-> Openstacklib::Policy<| tag == 'zaqar' |>
|
||||||
~> Anchor['zaqar::config::end']
|
~> Anchor['zaqar::config::end']
|
||||||
|
|
||||||
# Installation or config changes will always restart services.
|
# Installation or config changes will always restart services.
|
||||||
|
@ -65,6 +65,7 @@ class zaqar::policy (
|
|||||||
file_group => $::zaqar::params::group,
|
file_group => $::zaqar::params::group,
|
||||||
file_format => 'yaml',
|
file_format => 'yaml',
|
||||||
purge_config => $purge_config,
|
purge_config => $purge_config,
|
||||||
|
tag => 'zaqar',
|
||||||
}
|
}
|
||||||
|
|
||||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||||
|
@ -33,6 +33,7 @@ describe 'zaqar::policy' do
|
|||||||
:file_group => 'zaqar',
|
:file_group => 'zaqar',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => false,
|
:purge_config => false,
|
||||||
|
:tag => 'zaqar',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('zaqar_config').with(
|
is_expected.to contain_oslo__policy('zaqar_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
@ -63,6 +64,7 @@ describe 'zaqar::policy' do
|
|||||||
:file_group => 'zaqar',
|
:file_group => 'zaqar',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => true,
|
:purge_config => true,
|
||||||
|
:tag => 'zaqar',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('zaqar_config').with(
|
is_expected.to contain_oslo__policy('zaqar_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user