bundlewrap/bundles/redis/metadata.py
mwiegand e184259c37 wip
2021-10-20 22:39:59 +02:00

25 lines
506 B
Python

defaults = {
'apt': {
'packages': {
'redis-server': {},
},
},
'backup': {
'paths': {
'/var/lib/redis',
},
}
}
if node.has_bundle('zfs'):
defaults['zfs'] = {
'datasets': {
'tank/redis': {
'mountpoint': '/var/lib/redis',
'needed_by': [
'pkg_apt:redis-server',
'directory:/var/lib/redis',
],
},
},
}