bind-formula/bind/files/debian/logrotate_bind
2018-03-30 00:46:00 +02:00

16 lines
475 B
Text

{%- from "bind/map.jinja" import map with context %}
{%- set user = salt['pillar.get']('bind:config:user', map.user) %}
{%- set group = salt['pillar.get']('bind:config:group', map.group) %}
{{ map.log_dir }}/query.log {
rotate 7
daily
missingok
notifempty
sharedscripts
copytruncate
compress
create 0664 {{ user }} {{ group }}
{% if not salt['pkg.version']('logrotate').startswith('3.7')-%}
su {{ user }} {{ group }}
{% endif %}
}