backup redis
This commit is contained in:
parent
b840462782
commit
c6c9dc37f7
1 changed files with 18 additions and 1 deletions
|
@ -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',
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue