add fixes

This commit is contained in:
pettai 2024-06-12 16:25:26 +02:00
parent adac2dfd11
commit 6a8f7dbe58
No known key found for this signature in database
GPG key ID: CDF2C381E9A751BD

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",
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
file { "/etc/knot/knot.conf":
ensure => "file",
content => template("dns/knot/knot.conf.erb")
}
file { '/etc/knot/conf.d':
ensure => directory,
}
# Install KnotREST configuration
file { "/etc/knot_rest/knot_rest.yaml":
ensure => "file",
content => template("dns/knot/knot_rest.yaml.erb")
}
}