Compare commits
2 commits
1f0cd9544d
...
6a8f7dbe58
Author | SHA1 | Date | |
---|---|---|---|
pettai | 6a8f7dbe58 | ||
pettai | adac2dfd11 |
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue