diff --git a/bundles/redis/metadata.py b/bundles/redis/metadata.py index ad287c2..52f5d2e 100644 --- a/bundles/redis/metadata.py +++ b/bundles/redis/metadata.py @@ -4,4 +4,21 @@ defaults = { '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', + ], + }, + }, + }