bundles/vnstat: adjust vnstati calls for debian bullseye
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
69279ba34f
commit
26c2be07cf
6 changed files with 39 additions and 33 deletions
|
@ -1,4 +1,6 @@
|
|||
files = {
|
||||
'/etc/systemd/system/vnstati.service': {},
|
||||
'/etc/systemd/system/vnstati.timer': {},
|
||||
'/etc/vnstat.conf': {
|
||||
'content_type': 'mako',
|
||||
'context': node.metadata['vnstat'],
|
||||
|
@ -11,7 +13,7 @@ files = {
|
|||
},
|
||||
}
|
||||
|
||||
if node.metadata['vnstat'].get('generate-web-dashboard', False):
|
||||
if node.metadata.get('vnstat/generate-web-dashboard', False):
|
||||
files['/var/www/vnstat/index.html'] = {
|
||||
'content_type': 'mako',
|
||||
'context': node.metadata['vnstat'],
|
||||
|
@ -24,4 +26,12 @@ svc_systemd = {
|
|||
'file:/etc/vnstat.conf',
|
||||
},
|
||||
},
|
||||
'vnstati.timer': {
|
||||
'needs': {
|
||||
'file:/etc/systemd/system/vnstati.service',
|
||||
'file:/etc/systemd/system/vnstati.timer',
|
||||
},
|
||||
'running': node.metadata.get('vnstat/generate-web-dashboard', False),
|
||||
'enabled': node.metadata.get('vnstat/generate-web-dashboard', False),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue