Use oslo module for policy configuration
Change-Id: I4ee31c89df82d1d18dddc5c391b8ba2f8a6989bf
This commit is contained in:
parent
3b80104354
commit
ba159e362d
|
@ -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 }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue