mgrosz 24ed319d05 puppet-vitrage: Initial commit
This is the initial commit for puppet-vitrage.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: Ieb46f034ed35fb5e3c187f78f730139b469d9cf4
2015-12-17 07:53:19 +02:00

40 lines
810 B
Puppet

# == Class: vitrage::policy
#
# Configure the vitrage policies
#
# === Parameters
#
# [*policies*]
# (optional) Set of policies to configure for vitrage
# Example :
# {
# 'vitrage-context_is_admin' => {
# 'key' => 'context_is_admin',
# 'value' => 'true'
# },
# 'vitrage-default' => {
# 'key' => 'default',
# 'value' => 'rule:admin_or_owner'
# }
# }
# Defaults to empty hash.
#
# [*policy_path*]
# (optional) Path to the nova policy.json file
# Defaults to /etc/vitrage/policy.json
#
class vitrage::policy (
$policies = {},
$policy_path = '/etc/vitrage/policy.json',
) {
validate_hash($policies)
Openstacklib::Policy::Base {
file_path => $policy_path,
}
create_resources('openstacklib::policy::base', $policies)
}