1 # == Class: glance::policy
3 # Configure the glance policies
8 # (optional) Set of policies to configure for glance
11 # 'glance-context_is_admin' => {
12 # 'key' => 'context_is_admin',
15 # 'glance-default' => {
17 # 'value' => 'rule:admin_or_owner'
20 # Defaults to empty hash.
23 # (optional) Path to the glance policy.json file
24 # Defaults to /etc/glance/policy.json
26 class glance::policy (
28 $policy_path = '/etc/glance/policy.json',
31 validate_hash($policies)
33 Openstacklib::Policy::Base {
34 file_path => $policy_path,
37 create_resources('openstacklib::policy::base', $policies)