X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsyslog-ng%2Fmanifests%2Finit.pp;h=0e414b69ccd7c9e03fd74eaea23e99a974fa5ea5;hb=02ad4e819cc717c273537cba1532855ee12298f9;hp=36704e2083eb02bce55d4aa70cffe9b1f05fe429;hpb=3eb533e5499e66423bafdedaf6c7d08ead1772de;p=mirror%2Fdsa-puppet.git diff --git a/modules/syslog-ng/manifests/init.pp b/modules/syslog-ng/manifests/init.pp index 36704e208..0e414b69c 100644 --- a/modules/syslog-ng/manifests/init.pp +++ b/modules/syslog-ng/manifests/init.pp @@ -4,7 +4,9 @@ class syslog-ng { } service { 'syslog-ng': - ensure => running + ensure => running, + hasstatus => false, + pattern => 'syslog-ng', } file { '/etc/syslog-ng/syslog-ng.conf': @@ -21,4 +23,10 @@ class syslog-ng { source => 'puppet:///modules/syslog-ng/syslog-ng.logrotate', require => Package['syslog-ng'] } + if $::hostname in [lotty,lully] { + file { '/etc/logrotate.d/syslog-ng-loggers': + source => 'puppet:///modules/syslog-ng/syslog-ng.logrotate.loggers', + require => Package['syslog-ng'] + } + } }