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,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…
Add table
Add a link
Reference in a new issue