gitea ssd

This commit is contained in:
mwiegand 2022-06-23 12:55:52 +02:00
parent a3c7acc399
commit 9946edc6f3

View file

@ -66,14 +66,25 @@ defaults = {
'home': '/home/git',
},
},
}
@metadata_reactor.provides(
'zfs/datasets',
)
def zfs(metadata):
if not node.has_bundle('zfs'):
return {}
return {
'zfs': {
'datasets': {
'tank/gitea': {
f"{metadata.get('zfs/storage_classes/ssd')}/gitea": {
'mountpoint': '/var/lib/gitea',
},
},
},
}
}
@metadata_reactor.provides(