-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaults.jinja
41 lines (37 loc) · 1.03 KB
/
defaults.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% set def_storage_path= '/var/lib/knot' %}
{% set def_run_path= '/run/knot' %}
{% load_yaml as defaults %}
server:
rundir: {{ def_run_path }}
user: knot:knot
listen:
- 127.0.0.1@53
- ::1@53
database:
storage: {{ def_storage_path }}
common:
ttl: 7200 {# 2 hours #}
refresh: 14400 {# 4 hours #}
retry: 1800 {# 30 min #}
expire: 1814400 {# 3 weeks #}
nxdomain: 14400 {# 4 hours #}
profile:
{% endload %}
{% load_yaml as template_default %}
id: default
storage: {{ def_storage_path }}
semantic-checks: on
serial-policy: unixtime
# zonefile-sync: -1 do not touch source zone files, keep dnssec and ddns entries in journal
zonefile-sync: -1
# difference-no-serial: ignore serial, only look if file has changed
zonefile-load: difference-no-serial
journal-content: changes
file: '%s.zone'
{% endload %}
{% load_yaml as log_default %}
- target: syslog
any: info
{% endload %}
{% set settings=salt['grains.filter_by']({'none': defaults},
grain='none', default= 'none', merge= salt['pillar.get']('knot', {})) %}