Use oslo module for policy configuration

Change-Id: I4ee31c89df82d1d18dddc5c391b8ba2f8a6989bf
This commit is contained in:
ZhongShengping 2016-05-06 14:48:51 +08:00
parent 3b80104354
commit ba159e362d
2 changed files with 3 additions and 0 deletions

View File

@ -26,4 +26,6 @@ class ironic::policy (
create_resources('openstacklib::policy::base', $policies) create_resources('openstacklib::policy::base', $policies)
oslo::policy { 'ironic_config': policy_file => $policy_path }
} }

View File

@ -20,6 +20,7 @@ describe 'ironic::policy' do
:key => 'context_is_admin', :key => 'context_is_admin',
:value => 'foo:bar' :value => 'foo:bar'
}) })
is_expected.to contain_ironic_config('oslo_policy/policy_file').with_value('/etc/ironic/policy.json')
end end
end end