puppet-glance/manifests/policy.pp
luyuan 9989505da6 Update CHANGELOG.md and other files
Notice:
  Add terminator
    - CHANGELOG.md
  Remove spaces
    - glance::cache::cleaner
    - glance::cache::pruner
    - glance::client
    - glance::policy
Fix bug 1485160

Change-Id: I3e7a6fb13aade5ca3f886029f1f4e96a1c606ac6
2015-08-15 19:51:04 +08:00

40 lines
803 B
Puppet

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