From 3a3111f669e22322557931b788a073d34515b156 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Mon, 21 Jun 2021 00:30:56 +0200 Subject: [PATCH] wip --- bundles/nextcloud/metadata.py | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/bundles/nextcloud/metadata.py b/bundles/nextcloud/metadata.py index 1bcbb66..90cf3dc 100644 --- a/bundles/nextcloud/metadata.py +++ b/bundles/nextcloud/metadata.py @@ -30,6 +30,11 @@ defaults = { }, }, }, + 'backup': { + 'files': [ + '/etc/nextcloud/config.php', + ], + }, 'nextcloud': { 'admin_user': 'admin', 'admin_pass': repo.vault.password_for(f'{node.name} nextcloud admin pw'), @@ -54,19 +59,11 @@ defaults = { }, }, }, -} - - -@metadata_reactor.provides( - 'nextcloud/instance_id', -) -def instance_id(metadata): - return { - 'nextcloud': { - 'instance_id': repo.libs.derive_string.derive_string( - UUID(metadata.get('id')).bytes, - length=12, - choices=(string.ascii_lowercase + string.digits).encode(), - ).decode(), + 'zfs': { + 'datasets': { + 'tank/nexcloud': { + 'mountpoint': '/var/lib/nextcloud', + }, }, - } + }, +}