]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
Extending logrotate on test-mail02.pixelpark.net
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 26 Oct 2017 15:22:33 +0000 (17:22 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 26 Oct 2017 15:22:33 +0000 (17:22 +0200)
customer/pixelpark-mail/test-mail02.pixelpark.net.yaml

index 4d5c98fec397e63e0f0c484abff15eb02582a3c1..85b34cee7a9c8fd9856e7d7cca430c6959017ab9 100644 (file)
@@ -55,5 +55,30 @@ logrotate::conf:
   delaycompress: true
   missingok: true
 
+logrotate::rule:
+  wtmp:
+    path: '/var/log/wtmp'
+    missingok: true
+    dateext: true
+    dateformat: '-%Y-%m-%d'
+    rotate_every: 'month'
+    create: true
+    create_mode: '0664'
+    create_owner: 'root'
+    create_group: 'utmp'
+    minsize: '1M'
+    rotate: 12
+  btmp:
+    path: '/var/log/btmp'
+    missingok: true
+    dateext: true
+    dateformat: '-%Y-%m-%d'
+    rotate_every: 'month'
+    create: true
+    create_mode: '0600'
+    create_owner: 'root'
+    create_group: 'utmp'
+    minsize: '1M'
+    rotate: 1
 
 # vim: et