offsite-backups disable zfs-import-cache

This commit is contained in:
cronekorkn 2022-10-07 20:33:00 +02:00
parent 6b0e92447a
commit 782b30d064
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
3 changed files with 9 additions and 0 deletions

View file

@ -42,6 +42,13 @@ svc_systemd = {
'pkg_apt:zfs-zed'
},
},
'zfs-import-cache': {
'enabled': node.metadata.get('zfs/import-cache'),
'running': None,
'needs': {
'pkg_apt:zfs-zed'
},
},
}
for name, config in node.metadata.get('zfs/datasets', {}).items():

View file

@ -76,6 +76,7 @@ defaults = {
'weekly': 4,
'monthly': 24,
},
'import-cache': True,
},
}

View file

@ -55,6 +55,7 @@
},
},
'zfs': {
'import-cache': False,
'pools': {
'tank': {
'devices': [