bundles/unbound: add netdata config
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-12-13 15:17:19 +01:00
parent 3eeb253e55
commit 9c6fe48859
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,10 @@
jobs:
- name: local
address: 127.0.0.1:8953
timeout: 1
conf_path: /etc/unbound/unbound.conf
cumulative_stats: no
use_tls: yes
tls_skip_verify: no
tls_cert: /etc/unbound/unbound_control.pem
tls_key: /etc/unbound/unbound_control.key

View file

@ -5,7 +5,7 @@ server:
verbosity: 0
% if node.has_bundle('netdata'):
statistics-interval: 5
statistics-interval: 1
extended-statistics: yes
% else:
statistics-interval: 300

View file

@ -10,7 +10,7 @@ files = {
actions = {
'unbound_generate_certificates': {
'command': 'unbound-control-setup',
'command': 'unbound-control-setup && chmod 0644 /etc/unbound/unbound_control.*',
'unless': 'test -f /etc/unbound/unbound_server.key',
'needs': {
'pkg_apt:unbound',
@ -42,3 +42,11 @@ if node.has_bundle('systemd-networkd'):
svc_systemd['unbound']['needed_by'] = {
'file:/etc/resolv.conf',
}
if node.has_bundle('netdata'):
files['/etc/netdata/go.d/unbound.conf'] = {
'source': 'netdata-unbound.conf',
'triggers': {
'svc_systemd:netdata:restart',
},
}