bundles/unbound: add netdata config
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
3eeb253e55
commit
9c6fe48859
3 changed files with 20 additions and 2 deletions
10
bundles/unbound/files/netdata-unbound.conf
Normal file
10
bundles/unbound/files/netdata-unbound.conf
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue