Add per module policy service refresh
Updating the policies for this project should only refresh the services that reads it. Change-Id: I306233bb64b1070f722d7897063a700050be0058 (cherry picked from commit8d522ae1f2
) (cherry picked from commit95e2bae8f5
)
This commit is contained in:
parent
45be478d9e
commit
7eb20e3135
|
@ -39,7 +39,7 @@ class ec2api::deps {
|
||||||
|
|
||||||
# policy config should occur in the config block also.
|
# policy config should occur in the config block also.
|
||||||
Anchor['ec2api::config::begin']
|
Anchor['ec2api::config::begin']
|
||||||
-> Openstacklib::Policy<||>
|
-> Openstacklib::Policy<| tag == 'ec2api' |>
|
||||||
~> Anchor['ec2api::config::end']
|
~> Anchor['ec2api::config::end']
|
||||||
|
|
||||||
# Installation or config changes will always restart services.
|
# Installation or config changes will always restart services.
|
||||||
|
|
|
@ -62,6 +62,7 @@ class ec2api::policy (
|
||||||
file_group => $::ec2api::params::group,
|
file_group => $::ec2api::params::group,
|
||||||
file_format => 'yaml',
|
file_format => 'yaml',
|
||||||
purge_config => $purge_config,
|
purge_config => $purge_config,
|
||||||
|
tag => 'ec2api',
|
||||||
}
|
}
|
||||||
|
|
||||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||||
|
|
|
@ -32,6 +32,7 @@ describe 'ec2api::policy' do
|
||||||
:file_group => 'ec2api',
|
:file_group => 'ec2api',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => false,
|
:purge_config => false,
|
||||||
|
:tag => 'ec2api',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('ec2api_config').with(
|
is_expected.to contain_oslo__policy('ec2api_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
@ -61,6 +62,7 @@ describe 'ec2api::policy' do
|
||||||
:file_group => 'ec2api',
|
:file_group => 'ec2api',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => true,
|
:purge_config => true,
|
||||||
|
:tag => 'ec2api',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('ec2api_config').with(
|
is_expected.to contain_oslo__policy('ec2api_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
|
Loading…
Reference in New Issue