bundles/postgresql: please also always do dumps

This commit is contained in:
Franzi 2024-10-28 16:55:10 +01:00
parent e29a838fad
commit 46ec4cc2e7
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 7 deletions

View file

@ -57,7 +57,7 @@ files = {
},
}
if node.has_bundle('backup-client') and not node.has_bundle('zfs'):
if node.has_bundle('backup-client'):
files['/etc/backup-pre-hooks.d/90-postgresql-dump-all'] = {
'source': 'backup-pre-hook',
'content_type': 'mako',
@ -67,10 +67,6 @@ if node.has_bundle('backup-client') and not node.has_bundle('zfs'):
'mode': '0700',
}
directories['/var/tmp/postgresdumps'] = {}
else:
files['/var/tmp/postgresdumps'] = {
'delete': True,
}
postgres_roles = {
'root': {

View file

@ -11,6 +11,7 @@ defaults = {
'backups': {
'paths': {
'/var/lib/postgresql',
'/var/tmp/postgresdumps',
},
},
'bash_functions': {
@ -74,8 +75,6 @@ if node.has_bundle('zfs'):
},
},
}
else:
defaults['backups']['paths'].add('/var/tmp/postgresdumps')
@metadata_reactor.provides(