class pantin::syslog {
	package { 'syslog-ng':
		ensure => present,
	} ->
	file { '/etc/syslog-ng/syslog-ng.conf':
		mode => '0644',
		content => template('pantin/etc/syslog-ng/syslog-ng.conf.erb'),
	} ->
	package { 'rsyslog':
		ensure => purged,
	}

	service { 'syslog-ng':
		ensure => 'running',
		enable => true,
		subscribe => File['/etc/syslog-ng/syslog-ng.conf'],
	}

	file { '/etc/logrotate.d/syslog-ng':
		mode => '0644',
		content => template('pantin/etc/logrotate.d/syslog-ng.erb'),
	}
}
