summaryrefslogtreecommitdiff
path: root/manifests/client.pp
blob: 7af38eccb7ec97e94fd02374a5cc1ffc620f45c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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'],
	}
}