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