bundles/unbound: introduce, add to nodes
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
c5e43188ca
commit
3eeb253e55
7 changed files with 141 additions and 13 deletions
44
bundles/unbound/files/unbound.conf
Normal file
44
bundles/unbound/files/unbound.conf
Normal file
|
@ -0,0 +1,44 @@
|
|||
server:
|
||||
# provided by pkg_apt:unbound-anchor
|
||||
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
||||
|
||||
verbosity: 0
|
||||
|
||||
% if node.has_bundle('netdata'):
|
||||
statistics-interval: 5
|
||||
extended-statistics: yes
|
||||
% else:
|
||||
statistics-interval: 300
|
||||
% endif
|
||||
statistics-cumulative: no
|
||||
|
||||
num-threads: ${threads}
|
||||
|
||||
% if node.has_bundle('iptables'):
|
||||
# Use iptables to manage access to this service
|
||||
interface: 0.0.0.0
|
||||
interface: ::0
|
||||
access-control: 0.0.0.0/0 allow
|
||||
access-control: ::/0 allow
|
||||
% else:
|
||||
interface: 127.0.0.1
|
||||
interface: ::1
|
||||
access-control: 127.0.0.1 allow
|
||||
access-control: ::1 allow
|
||||
% endif
|
||||
|
||||
cache-max-ttl: ${max_ttl}
|
||||
|
||||
use-syslog: yes
|
||||
log-queries: no
|
||||
|
||||
root-hints: "/etc/unbound/root-hints.txt"
|
||||
|
||||
tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
|
||||
|
||||
remote-control:
|
||||
% if node.has_bundle('netdata'):
|
||||
control-enable: yes
|
||||
% else:
|
||||
control-enable: no
|
||||
% endif
|
Loading…
Add table
Add a link
Reference in a new issue