2020-11-13 11:37:26 +00:00
|
|
|
defaults = {
|
|
|
|
'backups': {
|
|
|
|
'paths': {
|
|
|
|
'/var/lib/postgresql',
|
|
|
|
},
|
|
|
|
},
|
2020-11-21 17:55:21 +00:00
|
|
|
'icinga2_api': {
|
|
|
|
'poostgresql': {
|
|
|
|
'services': {
|
|
|
|
'POSTGRESQL PROCESS': {
|
|
|
|
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C postgres -c 1:',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-11-13 11:37:26 +00:00
|
|
|
}
|
2020-08-29 19:30:12 +00:00
|
|
|
|
|
|
|
if node.has_bundle('zfs'):
|
|
|
|
defaults['zfs'] = {
|
|
|
|
'datasets': {
|
|
|
|
'tank/postgresql': {
|
|
|
|
'mountpoint': '/var/lib/postgresql',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|