bundles/vnstat: introduce, add to home.router

This commit is contained in:
Franzi 2020-11-16 16:33:26 +01:00
parent 9fa3757a96
commit 88dd587fb4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 108 additions and 0 deletions

18
bundles/vnstat/items.py Normal file
View file

@ -0,0 +1,18 @@
files = {
'/etc/vnstat.conf': {
'content_type': 'mako',
'context': node.metadata['vnstat'],
'triggers': {
'svc_systemd:vnstat:restart',
},
},
}
svc_systemd = {
'vnstat': {
'needs': {
'pkg_apt:vnstat',
'file:/etc/vnstat.conf',
},
},
}