Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I9c4804116384465fbefa419c1158a87ab8b2c872 (cherry picked from commit df8733d486a9c87ad5e8103c45d5b7011e41935e)
This commit is contained in:
parent
5f03372964
commit
d661961d35
@ -21,7 +21,7 @@ class watcher::deps {
|
||||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['watcher::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'watcher' |>
|
||||
~> Anchor['watcher::config::end']
|
||||
|
||||
# all cache settings should be applied and all packages should be installed
|
||||
|
@ -67,6 +67,7 @@ class watcher::policy (
|
||||
file_group => $::watcher::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'watcher',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -33,6 +33,7 @@ describe 'watcher::policy' do
|
||||
:file_group => 'watcher',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'watcher',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('watcher_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'watcher::policy' do
|
||||
:file_group => 'watcher',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'watcher',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('watcher_config').with(
|
||||
:enforce_scope => false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user