bundles/matrix-dimension: add zfs
This commit is contained in:
parent
79e6c841a7
commit
e7023d087b
1 changed files with 26 additions and 0 deletions
|
@ -42,6 +42,7 @@ defaults = {
|
|||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'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
|
||||
#@metadata_reactor.provides(
|
||||
# 'icinga2_api/matrix-dimension/services',
|
||||
|
|
Loading…
Reference in a new issue