summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index f79b975..1e93c6f 100644
--- a/README.markdown
+++ b/README.markdown
@@ -28,4 +28,18 @@ TBA
Jeff McCune <jeff@puppetlabs.com>
+# Functions #
+## validate\_hash ##
+ $somehash = { 'one' => 'two' }
+ validate\_hash($somehash)
+
+## getvar() ##
+
+This function aims to look up variables in user-defined namespaces within
+puppet. Note, if the namespace is a class, it should already be evaluated
+before the function is used.
+
+ $namespace = 'site::data'
+ include "${namespace}"
+ $myvar = getvar("${namespace}::myvar")