From a726b4045442fe2219353fb983d650fcd94b13be Mon Sep 17 00:00:00 2001 From: Mathieu Bornoz Date: Mon, 29 Apr 2013 12:33:46 +0200 Subject: rsyslog: make all module params configurable + support false for *_package_name variables. This is useful if relp support is not necessary as it happens that no packages exist for RedHat < 6. All these changes should be fully backward compatible. --- manifests/client.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifests/client.pp') diff --git a/manifests/client.pp b/manifests/client.pp index 39edd31..dcad059 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -38,10 +38,10 @@ class rsyslog::client ( default => template($custom_config), } - file { $rsyslog::params::client_conf: + file { $rsyslog::client_conf: ensure => present, owner => root, - group => $rsyslog::params::run_group, + group => $rsyslog::run_group, content => $content_real, require => Class['rsyslog::config'], notify => Class['rsyslog::service'], -- cgit v1.2.3 From abc3074cccb80c73b468bf96d19fbe42414e8d1e Mon Sep 17 00:00:00 2001 From: Mathieu Bornoz Date: Mon, 29 Apr 2013 12:37:13 +0200 Subject: use rsyslog::snippet for client and server configs Doesn't feature any functional change, but it seems cleaner to use that definition to avoid repeating dependencies and paths. --- manifests/client.pp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'manifests/client.pp') diff --git a/manifests/client.pp b/manifests/client.pp index dcad059..624dfe8 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -38,12 +38,9 @@ class rsyslog::client ( default => template($custom_config), } - file { $rsyslog::client_conf: + rsyslog::snippet {'client': ensure => present, - owner => root, - group => $rsyslog::run_group, content => $content_real, - require => Class['rsyslog::config'], - notify => Class['rsyslog::service'], - } + } + } -- cgit v1.2.3