Merge pull request #9 from cosu/master

Add logrotate to query log
This commit is contained in:
Joseph Hall 2014-03-24 05:39:45 -06:00
commit 9d5f16e2e8
2 changed files with 21 additions and 0 deletions

View file

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

View file

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