added logrotate to bind log

This commit is contained in:
Cosmin Dumitru 2014-03-24 10:41:35 +01:00
parent c83f392007
commit d9686a8142
2 changed files with 20 additions and 0 deletions

View file

@ -106,6 +106,16 @@ bind_default_zones:
- user: root
- group: bind
- mode: 775
- template: jinja
/etc/logrotate.d/bind9:
file:
- managed
- source: salt://bind/files/debian/logrotate_bind
- user: root
- group: root
{% endif %}
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}

View file

@ -0,0 +1,10 @@
/var/log/bind9/query.log {
rotate 7
daily
missingok
notifempty
sharedscripts
copytruncate
compress
create 0664 bind root
}