1d78470e50
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: Ia384a42365056317ca14031081f8c6e134f266aa
30 lines
716 B
Puppet
30 lines
716 B
Puppet
# == Class: ceilometer::policy
|
|
#
|
|
# Configure the ceilometer policies
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*policies*]
|
|
# (optional) Set of policies to configure for ceilometer
|
|
# Example : { 'ceilometer-context_is_admin' => {'context_is_admin' => 'true'}, 'ceilometer-default' => {'default' => 'rule:admin_or_owner'} }
|
|
# Defaults to empty hash.
|
|
#
|
|
# [*policy_path*]
|
|
# (optional) Path to the ceilometer policy.json file
|
|
# Defaults to /etc/ceilometer/policy.json
|
|
#
|
|
class ceilometer::policy (
|
|
$policies = {},
|
|
$policy_path = '/etc/ceilometer/policy.json',
|
|
) {
|
|
|
|
validate_hash($policies)
|
|
|
|
Openstacklib::Policy::Base {
|
|
file_path => $policy_path,
|
|
}
|
|
|
|
create_resources('openstacklib::policy::base', $policies)
|
|
|
|
}
|