2021-01-29 14:58:54 +00:00
|
|
|
defaults = {
|
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'redis-server': {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'backups': {
|
|
|
|
'paths': {
|
|
|
|
'/var/lib/redis',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'icinga2_api': {
|
|
|
|
'redis': {
|
|
|
|
'services': {
|
|
|
|
'REDIS PROCESS': {
|
|
|
|
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C redis-server -c 1:',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2021-07-17 08:17:39 +00:00
|
|
|
'zfs': {
|
|
|
|
'datasets': {
|
|
|
|
'tank/redis': {
|
|
|
|
'mountpoint': '/var/lib/redis',
|
2021-07-17 14:59:39 +00:00
|
|
|
'needed_by': {
|
2021-07-17 08:17:39 +00:00
|
|
|
'pkg_apt:redis-server',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-01-29 14:58:54 +00:00
|
|
|
}
|
2021-04-23 17:31:28 +00:00
|
|
|
|
|
|
|
if node.has_bundle('telegraf'):
|
|
|
|
defaults['telegraf'] = {
|
|
|
|
'input_plugins': {
|
|
|
|
'builtin': {
|
|
|
|
'redis': [{}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|