summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/logging.pp
blob: 441c57923d05fd29b0df845a8829a0a2afc289f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class site_webapp::logging {

  rsyslog::snippet { '01-webapp':
    content => 'if $programname == "webapp" then /var/log/leap/webapp.log
stop'
  }

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