45a35dc2ec
- 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>
35 lines
708 B
Puppet
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)
|
|
|
|
}
|