summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorAlex Cline <acline@us.ibm.com>2013-05-03 15:47:27 -0400
committerAlex Cline <acline@us.ibm.com>2013-05-03 15:47:27 -0400
commite08734af5a38cb9ad4bc2323104a1a8a76019bb8 (patch)
tree56c8ac9c38e052a56498bf22680e462aa8617b3d /README.markdown
parent0c68ff6d66960424567f15711cb20b674fc60054 (diff)
(#20548) Allow an array of resource titles to be passed into the ensure_resource function
This patch allows an array of resource titles to be passed into the ensure_resource function. Each item in the array will be checked for existence and will be created if it doesn't already exist.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 84cd08e..7b45b17 100644
--- a/README.markdown
+++ b/README.markdown
@@ -243,6 +243,11 @@ If the resource already exists but does not match the specified parameters,
this function will attempt to recreate the resource leading to a duplicate
resource definition error.
+An array of resources can also be passed in and each will be created with
+the type and parameters specified if it doesn't already exist.
+
+ ensure_resource('user', ['dan','alex'], {'ensure' => 'present'})
+
- *Type*: statement