bundlewrap/bundles/influxdb/metadata.py
Franziska Kunsmann 27d6c1880a
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/influxdb: introduce
2020-08-30 12:07:06 +02:00

36 lines
817 B
Python

from bundlewrap.utils.dicts import merge_dict
defaults = {
'apt': {
'packages': {
'influxdb': {},
},
'repos': {
'influxdb': {
'items': {
'deb https://repos.influxdata.com/{os} {os_release} stable',
},
},
},
},
}
if node.has_bundle('zfs'):
defaults = merge_dict(defaults, {
'apt': {
'packages': {
'influxdb': {
'needs': {
'zfs_dataset:tank/influxdb',
},
},
},
},
'zfs': {
'datasets': {
'tank/influxdb': {
'mountpoint': '/var/lib/influxdb',
},
},
},
})