summaryrefslogtreecommitdiff
path: root/manifests/client.pp
blob: 2b8bef3788cf46461fbaf6c65c5cc75a6ca800c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class rsyslog::client ($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'],
	}
}