summaryrefslogtreecommitdiff
path: root/puppet/modules/leap_mx/manifests/syslog.pp
blob: 0247a392dde45f7d19074e44afc07a17a8f62fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class leap_mx::syslog {

  rsyslog::snippet { '99-leap-mx':
    content => 'if $programname startswith \'leap-mx\' then /var/log/leap/mx.log
&~'
  }

  augeas {
    'logrotate_leap-mx':
      context => '/files/etc/logrotate.d/leap-mx/rule',
      changes => [ 'set file /var/log/leap/mx*.log', 'set rotate 7',
                   'set schedule daily', 'set compress compress',
                   'set missingok missingok', 'set ifempty notifempty',
                   'set copytruncate copytruncate' ]
  }

}