summaryrefslogtreecommitdiff
path: root/manifests/snippet.pp
diff options
context:
space:
mode:
authorJonathan Thurman <jthurman@newrelic.com>2012-11-14 11:43:57 -0800
committerJonathan Thurman <jthurman@newrelic.com>2012-11-14 11:43:57 -0800
commitf14ab8a15c76c72c2a8cb92cdd8d79bae613e6ca (patch)
tree1cd26f3247ca0505dc8a3f5c4d9eea24b560d202 /manifests/snippet.pp
parente34a766c2d294a09af091935039058f160293c9c (diff)
Create spec tests for all classes/defines and perform most cleanup recommended by puppet-lint
Diffstat (limited to 'manifests/snippet.pp')
-rw-r--r--manifests/snippet.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/snippet.pp b/manifests/snippet.pp
index d59a829..38e71d4 100644
--- a/manifests/snippet.pp
+++ b/manifests/snippet.pp
@@ -1,3 +1,20 @@
+# == Define: rsyslog::snippet
+#
+# This class allows for you to create a rsyslog configuration file with whatever content you pass in.
+#
+# === Parameters
+#
+# [*content*] - The actual content to place in the file.
+# [*ensure*] - How to enforce the file (default: present)
+#
+# === Variables
+#
+# === Examples
+#
+# rsyslog::snippet { 'my-rsyslog-config':
+# content => '<Some rsyslog directive>',
+# }
+#
define rsyslog::snippet(
$content,
$ensure = 'present'