bundlewrap/bundles/smartctl/metadata.py
2021-11-17 01:13:01 +01:00

29 lines
653 B
Python

h = repo.libs.hashable.hashable
defaults = {
'apt': {
'packages': {
'smartmontools': {},
},
},
'grafana_rows': {
'smartctl',
},
'smartctl': {},
'telegraf': {
'config': {
'inputs': {
'exec': {h({
'commands': [
f'sudo /usr/local/share/icinga/plugins/smartctl',
],
'data_format': 'influx',
'interval': '20s',
})},
},
},
},
'sudoers': {
'telegraf': {'/usr/local/share/icinga/plugins/smartctl'},
},
}