mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
commit
9d5f16e2e8
2 changed files with 21 additions and 0 deletions
|
@ -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() -%}
|
||||||
|
|
11
bind/files/debian/logrotate_bind
Normal file
11
bind/files/debian/logrotate_bind
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/var/log/bind9/query.log {
|
||||||
|
rotate 7
|
||||||
|
daily
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
sharedscripts
|
||||||
|
copytruncate
|
||||||
|
compress
|
||||||
|
create 0664 bind root
|
||||||
|
su
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue