bundles/matrix-dimension: add zfs

This commit is contained in:
Franzi 2021-07-23 19:53:49 +02:00
parent 79e6c841a7
commit e7023d087b
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -42,6 +42,7 @@ defaults = {
}, },
} }
@metadata_reactor.provides( @metadata_reactor.provides(
'nginx/vhosts/matrix-dimension', 'nginx/vhosts/matrix-dimension',
) )
@ -64,6 +65,31 @@ def nginx_config(metadata):
} }
@metadata_reactor.provides(
'zfs/datasets',
)
def zfs(metadata):
return {
'zfs': {
'datasets': {
'tank/matrix-dimension': {},
'tank/matrix-dimension/install': {
'mountpoint': metadata.get('matrix-dimension/install_dir'),
'needed_by': {
'directory:{}'.format(metadata.get('matrix-dimension/install_dir')),
},
},
'tank/matrix-dimension/var': {
'mountpoint': metadata.get('matrix-dimension/data_dir'),
'needed_by': {
'directory:{}'.format(metadata.get('matrix-dimension/data_dir')),
},
},
},
},
}
# XXX enable this once there are releases for matrix-dimension # XXX enable this once there are releases for matrix-dimension
#@metadata_reactor.provides( #@metadata_reactor.provides(
# 'icinga2_api/matrix-dimension/services', # 'icinga2_api/matrix-dimension/services',