2022-12-12 06:56:23 +00:00
|
|
|
files['/etc/systemd/system/vnstat.override.d/bundlewrap.conf'] = {
|
|
|
|
'source': 'override.conf',
|
|
|
|
'triggers': {
|
|
|
|
'action:systemd-reload',
|
|
|
|
'svc_systemd:vnstat:restart',
|
2021-04-11 09:18:42 +00:00
|
|
|
},
|
2022-12-12 06:56:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
files['/etc/vnstat.conf'] = {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'context': node.metadata['vnstat'],
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:vnstat:restart',
|
2020-11-16 16:07:05 +00:00
|
|
|
},
|
2020-11-16 15:33:26 +00:00
|
|
|
}
|
|
|
|
|
2022-12-12 06:56:23 +00:00
|
|
|
files['/usr/local/bin/generate-vnstati'] = {
|
|
|
|
'mode': '0755',
|
|
|
|
}
|
2020-11-16 16:07:05 +00:00
|
|
|
|
2022-12-12 06:56:23 +00:00
|
|
|
files['/var/www/vnstat/index.html'] = {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'context': node.metadata['vnstat'],
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd['vnstat'] = {
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/systemd/system/vnstat.override.d/bundlewrap.conf',
|
|
|
|
'file:/etc/vnstat.conf',
|
|
|
|
'pkg_apt:vnstat',
|
2021-04-11 07:01:58 +00:00
|
|
|
},
|
2020-11-16 15:33:26 +00:00
|
|
|
}
|