bundlewrap/bundles/postgresql/metadata.py

26 lines
565 B
Python
Raw Normal View History

2020-11-13 11:37:26 +00:00
defaults = {
'backups': {
'paths': {
'/var/lib/postgresql',
},
},
2020-11-21 17:55:21 +00:00
'icinga2_api': {
2020-11-22 06:40:34 +00:00
'postgresql': {
2020-11-21 17:55:21 +00:00
'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
}
if node.has_bundle('zfs'):
defaults['zfs'] = {
'datasets': {
'tank/postgresql': {
'mountpoint': '/var/lib/postgresql',
},
},
}