diff --git a/manifests/source.pp b/manifests/source.pp
index 022c8fa..3cc87f5 100644
--- a/manifests/source.pp
+++ b/manifests/source.pp
@@ -14,6 +14,12 @@
#
# Here you should define a list of variables that this module would require.
#
+#
+# [*ensure*]
+# String. Controls if the managed resources shall be present or
+# absent
+# Defaults to present.
+#
# [*priority*]
# Integer. Prefix to the filename to enforce sequential ordering of matches
# Default: 10
@@ -34,12 +40,17 @@
#
#
define fluentd::source (
+ $ensure = 'present',
$priority = 10,
$type = undef,
$type_config = undef,
$config = undef
){
+ if ! ($ensure in [ 'present', 'absent' ]) {
+ fail("fluentd::source{${name}}: ensure must be a string of 'present' or 'absent' (got ${ensure}")
+ }
+
if !is_integer($priority) {
fail("fluentd::source{${name}}: priority must be an integer (got: ${priority})")
}