Merge "Add per module policy service refresh"
This commit is contained in:
commit
f0ca808cfe
|
@ -35,7 +35,7 @@ class heat::deps {
|
||||||
|
|
||||||
# policy config should occur in the config block also.
|
# policy config should occur in the config block also.
|
||||||
Anchor['heat::config::begin']
|
Anchor['heat::config::begin']
|
||||||
-> Openstacklib::Policy<||>
|
-> Openstacklib::Policy<| tag == 'heat' |>
|
||||||
~> Anchor['heat::config::end']
|
~> Anchor['heat::config::end']
|
||||||
|
|
||||||
# On any uwsgi config change, we must restart Heat API.
|
# On any uwsgi config change, we must restart Heat API.
|
||||||
|
|
|
@ -65,6 +65,7 @@ class heat::policy (
|
||||||
file_group => $::heat::params::group,
|
file_group => $::heat::params::group,
|
||||||
file_format => 'yaml',
|
file_format => 'yaml',
|
||||||
purge_config => $purge_config,
|
purge_config => $purge_config,
|
||||||
|
tag => 'heat',
|
||||||
}
|
}
|
||||||
|
|
||||||
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
create_resources('openstacklib::policy', { $policy_path => $policy_parameters })
|
||||||
|
|
|
@ -33,6 +33,7 @@ describe 'heat::policy' do
|
||||||
:file_group => 'heat',
|
:file_group => 'heat',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => false,
|
:purge_config => false,
|
||||||
|
:tag => 'heat',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('heat_config').with(
|
is_expected.to contain_oslo__policy('heat_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
@ -63,6 +64,7 @@ describe 'heat::policy' do
|
||||||
:file_group => 'heat',
|
:file_group => 'heat',
|
||||||
:file_format => 'yaml',
|
:file_format => 'yaml',
|
||||||
:purge_config => true,
|
:purge_config => true,
|
||||||
|
:tag => 'heat',
|
||||||
)
|
)
|
||||||
is_expected.to contain_oslo__policy('heat_config').with(
|
is_expected.to contain_oslo__policy('heat_config').with(
|
||||||
:enforce_scope => false,
|
:enforce_scope => false,
|
||||||
|
|
Loading…
Reference in New Issue