blob: 6b71e9e67203f22ce1da5fe0545c88dd8ec2976c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class rsyslog::client ($log_remote = true, $remote_type = 'tcp', $log_local = false, $log_auth_local = false, $custom_config = undef, $server = 'log') inherits rsyslog {
file { $rsyslog::params::client_conf:
ensure => present,
owner => root,
group => root,
content => $custom_config ? {
'' => template("${module_name}/client.conf.erb"),
default => template($custom_config),
},
require => Class['rsyslog::config'],
notify => Class['rsyslog::service'],
}
}
|