Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I541a7dbb11580155cf2bb3af0ffbf6ebc5b1220b (cherry picked from commitf7f4319478
) (cherry picked from commitd76f4b4dfd
)
This commit is contained in:
parent
480405091f
commit
55d36ea5d8
@ -64,7 +64,7 @@ class neutron::deps {
|
|||||||
|
|
||||||
# policy config should occur in the config block also.
|
# policy config should occur in the config block also.
|
||||||
Anchor['neutron::config::begin']
|
Anchor['neutron::config::begin']
|
||||||
-> Openstacklib::Policy<||>
|
-> Openstacklib::Policy<| tag == 'neutron' |>
|
||||||
~> Anchor['neutron::config::end']
|
~> Anchor['neutron::config::end']
|
||||||
|
|
||||||
# Support packages need to be installed in the install phase, but we don't
|
# Support packages need to be installed in the install phase, but we don't
|
||||||
|
@ -62,6 +62,7 @@ class neutron::policy (
|
|||||||
file_group => $::neutron::params::group,
|
file_group => $::neutron::params::group,
|
||||||
file_format => 'yaml',
|
file_format => 'yaml',
|
||||||
purge_config => $purge_config,
|
purge_config => $purge_config,
|
||||||
|
tag => 'neutron',
|
||||||
}
|
}
|
||||||
|
|
||||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||||
|
@ -32,6 +32,7 @@ describe 'neutron::policy' do
|
|||||||
:file_group => 'neutron',
|
:file_group => 'neutron',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => false,
|
:purge_config => false,
|
||||||
|
:tag => 'neutron',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('neutron_config').with(
|
is_expected.to contain_oslo__policy('neutron_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
@ -61,6 +62,7 @@ describe 'neutron::policy' do
|
|||||||
:file_group => 'neutron',
|
:file_group => 'neutron',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => true,
|
:purge_config => true,
|
||||||
|
:tag => 'neutron',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('neutron_config').with(
|
is_expected.to contain_oslo__policy('neutron_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user