From ad5bb3d76b98b847bac5ed2467a46173343a1264 Mon Sep 17 00:00:00 2001 From: Mike Dorman Date: Mon, 12 Jan 2015 15:27:20 -0700 Subject: [PATCH] Correct docs on format for glance::policy data Correct the format of the $policies parameter to glance::policy. That parameter is passed directly to create_resources, so it needs to be in a format acceptable to that. Just updating docs here as anyone already using the policy classes are likely not using the (incorrectly) documented format, anyway. Change-Id: I80f1f832db124eef3bfd75907e4a2dcb5a5effca Closes-bug: 1409897 --- manifests/policy.pp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/manifests/policy.pp b/manifests/policy.pp index 34ce3991..bf1d8e45 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -6,7 +6,17 @@ # # [*policies*] # (optional) Set of policies to configure for glance -# Example : { 'glance-context_is_admin' => {'context_is_admin' => 'true'}, 'glance-default' => {'default' => 'rule:admin_or_owner'} } +# 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*]