Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
salt-state
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FFFFM
salt-state
Commits
71469832
Commit
71469832
authored
9 months ago
by
skorpy
Browse files
Options
Downloads
Patches
Plain Diff
knot: add the option for secondary ns
parent
d3b69a6c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#43492
failed
9 months ago
Stage: lint
Stage: highstate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
knot-dns/files/knot.conf.j2
+24
-12
24 additions, 12 deletions
knot-dns/files/knot.conf.j2
with
24 additions
and
12 deletions
knot-dns/files/knot.conf.j2
+
24
−
12
View file @
71469832
{%- set knot = pillar['knot-dns'] -%}
#
# This is a sample of a minimal configuration file for Knot DNS.
# For more details, see man 5 knot.conf or refer to the server documentation.
#
{%- set knot = salt['pillar.get']('knot-dns') -%}
server:
# Listen on all configured IPv4 interfaces.
...
...
@@ -13,6 +9,8 @@ server:
user: knot:knot
# https://www.knot-dns.cz/docs/latest/html/reference.html#edns-client-subnet
edns-client-subnet: on
automatic-acl: on
log:
# Log info and more serious events to syslog.
- target: syslog
...
...
@@ -46,22 +44,36 @@ mod-geoip:
ttl: 200
mode: subnet
{%- if salt['pillar.get']('knot-dns.secondary-remote', []) %}
remote:
{{ salt['pillar.get']('knot-dns.secondary-remote', [])) | yaml(False) | indent(2) }}
{%- endif %}
template:
- id: default
file: /var/lib/knot/zones/%s.zone
serial-policy: unixtime
storage: "/var/lib/knot"
storage: "/var/lib/knot/zones"
file: "%s.zone"
global-module: [mod-stats, mod-rrl/default]
- id: reverseV4
storage: "/var/lib/knot"
file: /var/lib/knot/zones/%s.zone
serial-policy: unixtime
storage: "/var/lib/knot/zones"
file: "%s.zone"
module: mod-synthrecord/v4185206208
- id: reverseV6
storage: "/var/lib/knot"
file:
/var/lib/knot/zones/
%s.zone
storage: "/var/lib/knot
/zones
"
file:
"
%s.zone
"
serial-policy: unixtime
module: mod-synthrecord/v63786
{%- for remote in salt['pillar.get']('knot-dns.secondary-remote', []) %}
- id: secondary-{{ remote }}
master: {{ remote }}
storage: "/var/lib/knot/secondary"
file: "%s.zone"
zonefile-sync: -1
zonefile-load: difference
journal-content: changes
{%- endfor %}
zone:
{{ knot['zone']
|
yaml(False)| indent(2) }}
{{
(
knot['zone']
+ salt['pillar.get']('knot-dns.secondary-zone', [])) |
yaml(False)
| indent(2) }}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment