]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/cinder/manifests/policy.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / policy.pp
1 # == Class: cinder::policy
2 #
3 # Configure the cinder policies
4 #
5 # === Parameters
6 #
7 # [*policies*]
8 #   (optional) Set of policies to configure for cinder
9 #   Example : { 'cinder-context_is_admin' => {'context_is_admin' => 'true'}, 'cinder-default' => {'default' => 'rule:admin_or_owner'} }
10 #   Defaults to empty hash.
11 #
12 # [*policy_path*]
13 #   (optional) Path to the cinder policy.json file
14 #   Defaults to /etc/cinder/policy.json
15 #
16 class cinder::policy (
17   $policies    = {},
18   $policy_path = '/etc/cinder/policy.json',
19 ) {
20
21   validate_hash($policies)
22
23   Openstacklib::Policy::Base {
24     file_path => $policy_path,
25   }
26
27   create_resources('openstacklib::policy::base', $policies)
28
29 }