bundles/telegraf: properly support arch linux
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-02-14 07:11:14 +01:00
parent 26c7900e32
commit 1ee0b38133
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 15 additions and 13 deletions

View file

@ -152,15 +152,3 @@ svc_systemd = {
},
},
}
if node.has_bundle('apt'):
svc_systemd['telegraf']['needs'].add('pkg_apt:telegraf')
users['telegraf']['needs'] = {
'pkg_apt:telegraf',
}
directories['/etc/telegraf/.cache']['needs'] = {
'pkg_apt:telegraf',
}
# Arch users: install telegraf or telegraf-bin from AUR

View file

@ -1,7 +1,12 @@
defaults = {
'apt': {
'packages': {
'telegraf': {},
'telegraf': {
'needed_by': {
'svc_systemd:telegraf',
'user:telegraf',
},
},
},
'repos': {
'influxdb': {
@ -20,4 +25,13 @@ defaults = {
},
},
},
'pacman': {
'telegraf-bin': {
'needed_by': {
'svc_systemd:telegraf',
'user:telegraf',
},
},
},
},
}