puppet-heat/manifests/policy.pp
Gael Chamoulaud 45a35dc2ec Add puppet-lint-param-docs plugins to puppet-lint
- This puppet-lint plugin checks if all parameters are documented
- Fix some unaligned arrows
- https://github.com/domcleal/puppet-lint-param-docs

Change-Id: I5e73747b726191bc4fc55e6e227892507e185871
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-11-13 12:42:40 +01:00

35 lines
708 B
Puppet

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