mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
added logrotate to bind log
This commit is contained in:
parent
c83f392007
commit
d9686a8142
2 changed files with 20 additions and 0 deletions
|
@ -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() -%}
|
||||
|
|
10
bind/files/debian/logrotate_bind
Normal file
10
bind/files/debian/logrotate_bind
Normal file
|
@ -0,0 +1,10 @@
|
|||
/var/log/bind9/query.log {
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
copytruncate
|
||||
compress
|
||||
create 0664 bind root
|
||||
}
|
Loading…
Add table
Reference in a new issue