Debian's bind user is bind, not root

This commit is contained in:
Javier Bértoli 2017-07-12 08:37:27 -03:00
parent 3a15babe35
commit b3192a4d16

38
bind/files/zone.jinja Normal file
View file

@ -0,0 +1,38 @@
;
; This file is managed/autogenerated by Salt, do not edit by hand!!
; Modify the values passed to the bind pillar instead.
;
{%- set zone_serial = soa['serial'] %}
{%- set zone_ns = soa['ns'] %}
{%- set zone_contact = soa['contact'] %}
{%- set zone_class = soa['class'] if soa['class'] is defined else 'IN' %}
{%- set zone_refresh = soa['refresh'] if soa['refresh'] is defined else '12h' %}
{%- set zone_retry = soa['retry'] if soa['retry'] is defined else '15m' %}
{%- set zone_expiry = soa['expiry'] if soa['expiry'] is defined else '2w' %}
{%- set zone_nxdomain = soa['nxdomain'] if soa['nxdomain'] is defined else '1m' %}
{%- if soa['ttl'] is defined -%}
$TTL {{ soa['ttl'] }}
{%- endif %}
@ {{ zone_class }} SOA {{ zone_ns }} {{ zone_contact }} (
{{ zone_serial }} ; serial
{{ zone_refresh }} ; refresh
{{ zone_retry }} ; retry
{{ zone_expiry }} ; expiry
{{ zone_nxdomain }} ; nxdomain ttl
);
{% for type, rrs in records.iteritems() %}
;
; {{ type }} RRs
;
{%- for host, data in rrs.iteritems() %}
{%- if data is number or data is string %}
{{ host }} {{ type }} {{ data }}
{%- elif data is iterable %}
{%- for value in data %}
{{ host }} {{ type }} {{ value }}
{%- endfor %}
{%- endif %}
{%- endfor %}
{% endfor %}