diff --git a/manifests/policy.pp b/manifests/policy.pp index 1f575d94..45689ce1 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -32,6 +32,7 @@ class heat::policy ( } create_resources('openstacklib::policy::base', $policies) + oslo::policy { 'heat_config': policy_file => $policy_path } Anchor<| title == 'heat::config::start' |> -> Class['heat::policy'] diff --git a/spec/classes/heat_policy_spec.rb b/spec/classes/heat_policy_spec.rb index 65cc321d..27878573 100644 --- a/spec/classes/heat_policy_spec.rb +++ b/spec/classes/heat_policy_spec.rb @@ -20,6 +20,7 @@ describe 'heat::policy' do :key => 'context_is_admin', :value => 'foo:bar' }) + is_expected.to contain_heat_config('oslo_policy/policy_file').with_value('/etc/heat/policy.json') end end