Franziska Kunsmann
27d6c1880a
All checks were successful
bundlewrap/pipeline/head This commit looks good
36 lines
817 B
Python
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',
|
|
},
|
|
},
|
|
},
|
|
})
|