mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00
16 lines
475 B
Text
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 %}
|
|
}
|