mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Debian's bind user is bind, not root
This commit is contained in:
parent
3a15babe35
commit
b3192a4d16
1 changed files with 38 additions and 0 deletions
38
bind/files/zone.jinja
Normal file
38
bind/files/zone.jinja
Normal 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 %}
|
Loading…
Add table
Reference in a new issue