bundles/vnstat: introduce, add to home.router
This commit is contained in:
parent
9fa3757a96
commit
88dd587fb4
4 changed files with 108 additions and 0 deletions
18
bundles/vnstat/items.py
Normal file
18
bundles/vnstat/items.py
Normal 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',
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue