Puppet Class: neutron::policy
- Defined in:
- manifests/policy.pp
Overview
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
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'manifests/policy.pp', line 26
class neutron::policy (
$policies = {},
$policy_path = '/etc/neutron/policy.json',
) {
include neutron::deps
include neutron::params
validate_legacy(Hash, 'validate_hash', $policies)
Openstacklib::Policy::Base {
file_path => $policy_path,
file_user => 'root',
file_group => $::neutron::params::group,
}
create_resources('openstacklib::policy::base', $policies)
oslo::policy { 'neutron_config': policy_file => $policy_path }
}
|