summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2013-03-21 12:05:15 -0700
committerHunter Haugen <h.haugen@gmail.com>2013-03-21 12:05:15 -0700
commite1092f423f285ed9ec5d94bf8d6846e4aab20dd7 (patch)
treec8dbd73c6c97bbdea163f1f05df1f7751b0851c5 /manifests/client.pp
parent40200058af7365572a9fc501b678b164fb7591c5 (diff)
Add `custom_params` to `rsyslog::client` for custom templates
When doing lookups in templates, variables that are not explicitly scoped with `scope.lookupvar()` must be in the scope of the `template()` function call. `rsyslog::client` allows custom templates to be called, but doesn't allow custom parameters to be passed for the alterate template to use. This pull request adds a `custom_params` parameter so a hash of extra parameters may be passed for the custom template to access without explicit scoping knowledge.
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 74f839a..39edd31 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -11,6 +11,7 @@
# [*log_local*]
# [*log_auth_local*]
# [*custom_config*]
+# [*custom_params*]
# [*server*]
# [*port*]
#
@@ -27,6 +28,7 @@ class rsyslog::client (
$log_local = false,
$log_auth_local = false,
$custom_config = undef,
+ $custom_params = undef,
$server = 'log',
$port = '514'
) inherits rsyslog {