From: Frank Brehm Date: Fri, 27 Oct 2017 13:16:22 +0000 (+0200) Subject: Extending logrotate configuration X-Git-Tag: v0.1.0~2138^2~3 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f961f6fc4da66d501c7b4dc4663e4169f1ceadcd;p=pixelpark%2Fhiera.git Extending logrotate configuration --- diff --git a/customer/pixelpark-mail/common.yaml b/customer/pixelpark-mail/common.yaml index 38119357..d678d622 100644 --- a/customer/pixelpark-mail/common.yaml +++ b/customer/pixelpark-mail/common.yaml @@ -115,7 +115,7 @@ infra::profile::logrotate::config: rotate: 4 create: true dateext: true - #dateformat: '-%Y-%m-%d' + dateformat: '-%Y-%m-%d' compress: true delaycompress: true missingok: true @@ -148,3 +148,39 @@ infra::profile::logrotate::rules: create_group: 'utmp' minsize: '1M' rotate: 1 + named: + path: '/var/log/named/*.log' + rotate_every: 'day' + missingok: true + minsize: '4M' + su_owner: 'named' + su_group: 'named' + create: true + create_mode: '0644' + create_owner: 'named' + create_group: 'named' + dateext: true + dateformat: '-%Y-%m-%d' + compress: true + delaycompress: true + missingok: true + sharedscripts: true + postrotate: | + /usr/sbin/rndc reload >/dev/null + named_run: + path: '/var/named/data/named.run' + missingok: true + su: true + su_owner: 'named' + su_group: 'named' + create: true + create_mode: '0644' + create_owner: 'named' + create_group: 'named' + postrotate: | + /usr/bin/systemctl reload named.service > /dev/null 2>&1 || true + /usr/bin/systemctl reload named-chroot.service > /dev/null 2>&1 || true + /usr/bin/systemctl reload named-sdb.service > /dev/null 2>&1 || true + /usr/bin/systemctl reload named-sdb-chroot.service > /dev/null 2>&1 || true + /usr/bin/systemctl reload named-pkcs11.service > /dev/null 2>&1 || true + diff --git a/customer/pixelpark-mail/test-mail02.pixelpark.net.yaml b/customer/pixelpark-mail/test-mail02.pixelpark.net.yaml index 15ceaa31..2746b410 100644 --- a/customer/pixelpark-mail/test-mail02.pixelpark.net.yaml +++ b/customer/pixelpark-mail/test-mail02.pixelpark.net.yaml @@ -44,10 +44,6 @@ infra::profile::logrotate::config: dateformat: '-%Y-%m-%d' infra::profile::logrotate::rules: -# wtmp: -# dateformat: '-%Y-%m-%d' -# btmp: -# dateformat: '-%Y-%m-%d' samba: path: '/var/log/samba/*' ifempty: false