Compare commits

..

2 commits

Author SHA1 Message Date
pettai 6a8f7dbe58
add fixes 2024-06-12 16:25:26 +02:00
pettai adac2dfd11
add included knot-conf 2024-06-12 16:17:28 +02:00
2 changed files with 10 additions and 0 deletions

View file

@ -21,16 +21,24 @@ class dns::knotdns(
command => "apt install -fy knot knot-host knot-dnsutils libknot14 python3-knot-rest=$knotrestversion && touch $control_file", command => "apt install -fy knot knot-host knot-dnsutils libknot14 python3-knot-rest=$knotrestversion && touch $control_file",
unless => "test -f $control_file", unless => "test -f $control_file",
} }
exec {"correct elasticsearch docker image mount rights":
command => "usermod -a -G knot knot_rest",
unless => "test -f $control_file",
}
# Install KnotDNS configuration # Install KnotDNS configuration
file { "/etc/knot/knot.conf": file { "/etc/knot/knot.conf":
ensure => "file", ensure => "file",
content => template("dns/knot/knot.conf.erb") content => template("dns/knot/knot.conf.erb")
} }
file { '/etc/knot/conf.d':
ensure => directory,
}
# Install KnotREST configuration # Install KnotREST configuration
file { "/etc/knot_rest/knot_rest.yaml": file { "/etc/knot_rest/knot_rest.yaml":
ensure => "file", ensure => "file",
content => template("dns/knot/knot_rest.yaml.erb") content => template("dns/knot/knot_rest.yaml.erb")
} }
} }

View file

@ -23,6 +23,8 @@ template:
storage: "/var/lib/knot/zones" storage: "/var/lib/knot/zones"
file: "%s.zone" file: "%s.zone"
include: conf.d/*.conf
zone: zone:
# Primary zones # Primary zones
- domain: example.com - domain: example.com