items/zfs_dataset: remove automatic dependency detection for now
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This basically reverts commit 1086ed28c3
This commit is contained in:
parent
cee2a41771
commit
84d55c246a
12 changed files with 56 additions and 8 deletions
|
@ -3,6 +3,9 @@ defaults = {
|
|||
'datasets': {
|
||||
'tank/element-web': {
|
||||
'mountpoint': '/opt/element-web',
|
||||
'needed_by': {
|
||||
'directory:/opt/element-web',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -50,9 +50,15 @@ defaults = {
|
|||
'tank/gitea': {},
|
||||
'tank/gitea/home': {
|
||||
'mountpoint': '/home/git',
|
||||
'needed_by': {
|
||||
'directory:/home/git',
|
||||
},
|
||||
},
|
||||
'tank/gitea/var': {
|
||||
'mountpoint': '/var/lib/gitea',
|
||||
'needed_by': {
|
||||
'directory:/var/lib/gitea',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -60,10 +60,16 @@ defaults = {
|
|||
'tank/matrix-media-repo': {},
|
||||
'tank/matrix-media-repo/install': {
|
||||
'mountpoint': '/opt/matrix-media-repo',
|
||||
'needed_by': {
|
||||
'directory:/opt/matrix-media-repo',
|
||||
},
|
||||
},
|
||||
'tank/matrix-media-repo/media': {
|
||||
'mountpoint': '/var/matrix/media',
|
||||
'compression': 'on',
|
||||
'needed_by': {
|
||||
'directory:/var/matrix/media',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -44,6 +44,9 @@ defaults = {
|
|||
'datasets': {
|
||||
'tank/mautrix-telegram': {
|
||||
'mountpoint': '/opt/mautrix-telegram',
|
||||
'needed_by': {
|
||||
'directory:/opt/mautrix-telegram',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -51,6 +51,9 @@ defaults = {
|
|||
'datasets': {
|
||||
'tank/mautrix-whatsapp': {
|
||||
'mountpoint': '/opt/mautrix-whatsapp',
|
||||
'needed_by': {
|
||||
'directory:/opt/mautrix-whatsapp',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -39,6 +39,9 @@ defaults = {
|
|||
'datasets': {
|
||||
'tank/mx-puppet-discord': {
|
||||
'mountpoint': '/opt/mx-puppet-discord',
|
||||
'needed_by': {
|
||||
'directory:/opt/mx-puppet-discord',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -15,6 +15,9 @@ defaults = {
|
|||
'datasets': {
|
||||
'tank/pleroma-data': {
|
||||
'mountpoint': '/var/pleroma',
|
||||
'needed_by': {
|
||||
'directory:/var/pleroma',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -27,10 +27,16 @@ defaults = {
|
|||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/mail': {
|
||||
'mountpoint': '/var/mail',
|
||||
'mountpoint': '/var/mail/vmail',
|
||||
'needed_by': {
|
||||
'directory:/var/mail/vmail',
|
||||
},
|
||||
},
|
||||
'tank/postfixadmin': {
|
||||
'mountpoint': '/opt/postfixadmin',
|
||||
'needed_by': {
|
||||
'directory:/opt/postfixadmin',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -119,13 +119,16 @@ class ZFSDataset(Item):
|
|||
# XXX Could be optimized by finding the "largest"
|
||||
# parent only.
|
||||
yield item.id
|
||||
elif self.attributes.get('mountpoint'):
|
||||
for item_type in ['directory', 'file', 'git_deploy']:
|
||||
if (
|
||||
item.ITEM_TYPE_NAME == item_type and
|
||||
item.name.startswith('{}:{}'.format(item_type, self.attributes['mountpoint']))
|
||||
):
|
||||
yield item.id
|
||||
|
||||
# XXX This populates 'needs', not 'needed_by'. We have opened
|
||||
# an issue: https://github.com/bundlewrap/bundlewrap/issues/648
|
||||
# elif self.attributes.get('mountpoint'):
|
||||
# for item_type in ['directory', 'file', 'git_deploy']:
|
||||
# if (
|
||||
# item.ITEM_TYPE_NAME == item_type and
|
||||
# item.name.startswith('{}:{}'.format(item_type, self.attributes['mountpoint']))
|
||||
# ):
|
||||
# yield item.id
|
||||
|
||||
|
||||
if not pool_item_found:
|
||||
|
|
|
@ -87,6 +87,9 @@ nodes['htz-cloud.luther'] = {
|
|||
'datasets': {
|
||||
'tank/luther-website': {
|
||||
'mountpoint': '/var/www/luther-ps',
|
||||
'needed_by': {
|
||||
'directory:/var/www/luther-ps',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -79,6 +79,9 @@ nodes['htz-cloud.sewfile'] = {
|
|||
},
|
||||
'tank/seafile-data': {
|
||||
'mountpoint': '/mnt/seafile-data',
|
||||
'needed_by': {
|
||||
'bundle:seafile',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -324,9 +324,15 @@ nodes['rx300'] = {
|
|||
'tank/libvirt': {
|
||||
'mountpoint': '/var/lib/libvirt',
|
||||
'compression': 'on',
|
||||
'needed_by': {
|
||||
'bundle:vmhost',
|
||||
},
|
||||
},
|
||||
'tank/home-kunsi': {
|
||||
'mountpoint': '/home/kunsi',
|
||||
'needed_by': {
|
||||
'directory:/home/kunsi',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue