Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: Ib1f41d2dcce7c7cd095ac589fbd15cd020c69af3
This commit is contained in:
parent
7156a9dde5
commit
a23ca78f52
|
@ -31,7 +31,7 @@ class vitrage::deps {
|
||||||
|
|
||||||
# policy config should occur in the config block also.
|
# policy config should occur in the config block also.
|
||||||
Anchor['vitrage::config::begin']
|
Anchor['vitrage::config::begin']
|
||||||
-> Openstacklib::Policy<||>
|
-> Openstacklib::Policy<| tag == 'vitrage' |>
|
||||||
~> Anchor['vitrage::config::end']
|
~> Anchor['vitrage::config::end']
|
||||||
|
|
||||||
# all coordination settings should be applied and all packages should be
|
# all coordination settings should be applied and all packages should be
|
||||||
|
|
|
@ -65,6 +65,7 @@ class vitrage::policy (
|
||||||
file_group => $::vitrage::params::group,
|
file_group => $::vitrage::params::group,
|
||||||
file_format => 'yaml',
|
file_format => 'yaml',
|
||||||
purge_config => $purge_config,
|
purge_config => $purge_config,
|
||||||
|
tag => 'vitrage',
|
||||||
}
|
}
|
||||||
|
|
||||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||||
|
|
|
@ -33,6 +33,7 @@ describe 'vitrage::policy' do
|
||||||
:file_group => 'vitrage',
|
:file_group => 'vitrage',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => false,
|
:purge_config => false,
|
||||||
|
:tag => 'vitrage',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('vitrage_config').with(
|
is_expected.to contain_oslo__policy('vitrage_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
@ -63,6 +64,7 @@ describe 'vitrage::policy' do
|
||||||
:file_group => 'vitrage',
|
:file_group => 'vitrage',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => true,
|
:purge_config => true,
|
||||||
|
:tag => 'vitrage',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('vitrage_config').with(
|
is_expected.to contain_oslo__policy('vitrage_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
|
Loading…
Reference in New Issue