663b4b16d2
Currently, in the policy.pp file the class openstacklib::policy is called. The same apply for all components resulting in a Duplicate Ressource issue. Using directly the underlying ressource openstacklib::policy::base we prevent this issue. Change-Id: I7c71e957fbae4caa7a4fc3309c58a0abd057e412
30 lines
689 B
Puppet
30 lines
689 B
Puppet
# == Class: neutron::policy
|
|
#
|
|
# Configure the neutron policies
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*policies*]
|
|
# (optional) Set of policies to configure for neutron
|
|
# Example : { 'neutron-context_is_admin' => {'context_is_admin' => 'true'}, 'neutron-default' => {'default' => '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)
|
|
|
|
}
|