X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fcinder%2Fmanifests%2Fpolicy.pp;fp=3rdparty%2Fmodules%2Fcinder%2Fmanifests%2Fpolicy.pp;h=322dd0daaba49c751f67bc09e9f618c131716fa1;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hp=0000000000000000000000000000000000000000;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa;p=dsa-puppet.git diff --git a/3rdparty/modules/cinder/manifests/policy.pp b/3rdparty/modules/cinder/manifests/policy.pp new file mode 100644 index 00000000..322dd0da --- /dev/null +++ b/3rdparty/modules/cinder/manifests/policy.pp @@ -0,0 +1,29 @@ +# == Class: cinder::policy +# +# Configure the cinder policies +# +# === Parameters +# +# [*policies*] +# (optional) Set of policies to configure for cinder +# Example : { 'cinder-context_is_admin' => {'context_is_admin' => 'true'}, 'cinder-default' => {'default' => 'rule:admin_or_owner'} } +# Defaults to empty hash. +# +# [*policy_path*] +# (optional) Path to the cinder policy.json file +# Defaults to /etc/cinder/policy.json +# +class cinder::policy ( + $policies = {}, + $policy_path = '/etc/cinder/policy.json', +) { + + validate_hash($policies) + + Openstacklib::Policy::Base { + file_path => $policy_path, + } + + create_resources('openstacklib::policy::base', $policies) + +}