summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-03-13 21:49:12 +0100
committervarac <varacanero@zeromail.org>2014-03-13 21:49:12 +0100
commit2f1b09caa23d74b3b778dd285a3456c142d052f8 (patch)
tree50f7d56bc6347b73b6f6a156c293f327b61e8328 /puppet/modules/site_nagios/manifests
parent41fcf91e43027f32faa97309616d20699ba0ebd4 (diff)
parenta7ff480b5946f30445add762839118d878a775de (diff)
Merge branch '5324_nagios_logging' into 0.6
Diffstat (limited to 'puppet/modules/site_nagios/manifests')
-rw-r--r--puppet/modules/site_nagios/manifests/server.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/manifests/server.pp b/puppet/modules/site_nagios/manifests/server.pp
index 7106c36a..85443917 100644
--- a/puppet/modules/site_nagios/manifests/server.pp
+++ b/puppet/modules/site_nagios/manifests/server.pp
@@ -46,4 +46,13 @@ class site_nagios::server inherits nagios::base {
include site_nagios::server::apache
include site_check_mk::server
include site_shorewall::monitor
+
+ augeas {
+ 'logrotate_nagios':
+ context => '/files/etc/logrotate.d/nagios/rule',
+ changes => [ 'set file /var/log/nagios3/nagios.log', 'set rotate 7',
+ 'set schedule daily', 'set compress compress',
+ 'set missingok missingok', 'set ifempty notifempty',
+ 'set copytruncate copytruncate' ]
+ }
}