source => 'puppet:///modules/syslog_ng/syslog-ng.logrotate',
require => Package['syslog-ng']
}
- if $::hostname in [lotti,loghost-grnet-01,loghost-osuosl-01] {
- file { '/etc/logrotate.d/syslog-ng-loggers':
- source => 'puppet:///modules/syslog_ng/syslog-ng.logrotate.loggers',
- require => Package['syslog-ng']
- }
- file { '/etc/cron.daily/local-handle-loghost-logs':
- ensure => absent,
- }
- file { '/etc/cron.daily/puppet-handle-loghost-logs':
- source => 'puppet:///modules/syslog_ng/loggers-cron',
- mode => '0555',
- }
- }
- # while syslog-ng breaks on boot
if $systemd {
file { '/etc/systemd/system/syslog-ng.service':
--- /dev/null
+class syslog_ng::loghost {
+ file { '/etc/logrotate.d/syslog-ng-loggers':
+ source => 'puppet:///modules/syslog_ng/syslog-ng.logrotate.loggers',
+ require => Package['syslog-ng']
+ }
+ file { '/etc/cron.daily/puppet-handle-loghost-logs':
+ source => 'puppet:///modules/syslog_ng/loggers-cron',
+ mode => '0555',
+ }
+ file { '/var/log/.nobackup':
+ ensure => present,
+ }
+}