From e1092f423f285ed9ec5d94bf8d6846e4aab20dd7 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Thu, 21 Mar 2013 12:05:15 -0700 Subject: 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. --- manifests/client.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests') 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 { -- cgit v1.2.3