bundles/telegraf: properly support arch linux
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
26c7900e32
commit
1ee0b38133
2 changed files with 15 additions and 13 deletions
|
@ -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
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
'telegraf': {},
|
'telegraf': {
|
||||||
|
'needed_by': {
|
||||||
|
'svc_systemd:telegraf',
|
||||||
|
'user:telegraf',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'repos': {
|
'repos': {
|
||||||
'influxdb': {
|
'influxdb': {
|
||||||
|
@ -20,4 +25,13 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'pacman': {
|
||||||
|
'telegraf-bin': {
|
||||||
|
'needed_by': {
|
||||||
|
'svc_systemd:telegraf',
|
||||||
|
'user:telegraf',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue