Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I051bf72e078071eee7e76638a4b17b0f8dd80013
This commit is contained in:
parent
b341ddf504
commit
7c5b921065
@ -56,11 +56,11 @@ class ironic::deps {
|
||||
|
||||
# policy config should occur in the config block also.
|
||||
Anchor['ironic::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'ironic' |>
|
||||
~> Anchor['ironic::config::end']
|
||||
|
||||
Anchor['ironic-inspector::config::begin']
|
||||
-> Openstacklib::Policy<||>
|
||||
-> Openstacklib::Policy<| tag == 'ironic-inspector' |>
|
||||
~> Anchor['ironic-inspector::config::end']
|
||||
|
||||
# Support packages need to be installed in the install phase, but we don't
|
||||
|
@ -65,6 +65,7 @@ class ironic::inspector::policy (
|
||||
file_group => $::ironic::params::inspector_group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'ironic-inspector',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -65,6 +65,7 @@ class ironic::policy (
|
||||
file_group => $::ironic::params::group,
|
||||
file_format => 'yaml',
|
||||
purge_config => $purge_config,
|
||||
tag => 'ironic',
|
||||
}
|
||||
|
||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||
|
@ -33,6 +33,7 @@ describe 'ironic::inspector::policy' do
|
||||
:file_group => 'ironic-inspector',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'ironic-inspector',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('ironic_inspector_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'ironic::inspector::policy' do
|
||||
:file_group => 'ironic-inspector',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'ironic-inspector',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('ironic_inspector_config').with(
|
||||
:enforce_scope => false,
|
||||
|
@ -33,6 +33,7 @@ describe 'ironic::policy' do
|
||||
:file_group => 'ironic',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => false,
|
||||
:tag => 'ironic',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('ironic_config').with(
|
||||
:enforce_scope => false,
|
||||
@ -63,6 +64,7 @@ describe 'ironic::policy' do
|
||||
:file_group => 'ironic',
|
||||
:file_format => 'yaml',
|
||||
:purge_config => true,
|
||||
:tag => 'ironic',
|
||||
)
|
||||
is_expected.to contain_oslo__policy('ironic_config').with(
|
||||
:enforce_scope => false,
|
||||
|
Loading…
Reference in New Issue
Block a user