diff options
author | Yasser Nabi <yassersaleemi@gmail.com> | 2014-07-07 13:30:14 +0100 |
---|---|---|
committer | Yasser Nabi <yassersaleemi@gmail.com> | 2014-07-10 17:14:27 +0100 |
commit | 3b49f0c389e04971e1a3623e731e588b7fadb2d1 (patch) | |
tree | 18e370eb4277197efe88b32da314f90ce8102a83 /manifests/params.pp | |
parent | 67c7c501b916ebd1a27a8a218d49602339526c4f (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}.") |