diff options
author | Saz <me@saz.sh> | 2011-12-02 17:04:17 +0100 |
---|---|---|
committer | Saz <me@saz.sh> | 2011-12-02 17:04:17 +0100 |
commit | 52001b9529c4a751374e14e53888c9d6840767df (patch) | |
tree | 85d97ad8394f99f398d279d3e2a8ce1af63fe515 /manifests/client.pp | |
parent | 6f079f7b6439ecfb6cb605f5869b813682fcc8eb (diff) |
add option for logging on a client all or auth log only, alternate config template
Diffstat (limited to 'manifests/client.pp')
-rw-r--r-- | manifests/client.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index a060413..498df44 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -1,9 +1,12 @@ -class rsyslog::client inherits rsyslog { +class rsyslog::client inherits rsyslog ($log_local = false, $log_auth_local = false, $custom_config = undef) { file { $rsyslog::params::client_conf: owner => root, group => root, ensure => file, - content => template("${module_name}/client.conf.erb"), + content => $custom_config ? { + '' => template("${module_name}/client.conf.erb"), + default => template($custom_config), + }, require => Class['rsyslog::install'], notify => Class['rsyslog::service'], } |