diff options
author | Yasser Nabi <yassersaleemi@gmail.com> | 2014-07-07 13:30:14 +0100 |
---|---|---|
committer | Yasser Nabi <yassersaleemi@gmail.com> | 2014-07-07 13:30:14 +0100 |
commit | 18a16ca041469d99bc0c5d27c46db62a06903ed8 (patch) | |
tree | 3538ab13d8d657666d85ae9b92cea981865190a3 /manifests/params.pp | |
parent | 3072553c9543b5c7769c54ed251bdfcce2967ce9 (diff) |
Add parameter 'v8plus' for rsyslog version 8+
There has been some significant config changes in versions 8+ of
Rsyslog, one of which is causing deprecated warnings with the Puppet
module. This commit adds are class boolean parameter 'v8plus' to signify
if the version of Rsyslog is version 8 or greater.
Also, the deprecation warning is fixed (correct syntax is used).
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index f4cd74b..2628d46 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -45,6 +45,7 @@ class rsyslog::params { $preserve_fqdn = false $service_hasrestart = true $service_hasstatus = true + $v8plus = false } redhat: { if $::operatingsystem == 'Amazon' { @@ -119,6 +120,7 @@ class rsyslog::params { $preserve_fqdn = false $service_hasrestart = true $service_hasstatus = true + $v8plus = false } sles: { $rsyslog_package_name = 'rsyslog' @@ -140,6 +142,7 @@ class rsyslog::params { $service_name = 'syslog' $client_conf = "${rsyslog_d}client.conf" $server_conf = "${rsyslog_d}server.conf" + $v8plus = false } freebsd: { $rsyslog_package_name = 'sysutils/rsyslog5' @@ -173,6 +176,7 @@ class rsyslog::params { $preserve_fqdn = false $service_hasrestart = true $service_hasstatus = true + $v8plus = false } default: { @@ -209,6 +213,7 @@ class rsyslog::params { $preserve_fqdn = false $service_hasrestart = true $service_hasstatus = true + $v8plus = false } default: { fail("The ${module_name} module is not supported on ${::osfamily}/${::operatingsystem}.") |