bundles/telegraf: add cache directory

This commit is contained in:
Franzi 2021-10-18 19:34:20 +02:00
parent 5885e4b043
commit 3775bcb9db
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -114,6 +114,12 @@ else:
},
}
directories = {
'/etc/telegraf/.cache': {
'owner': 'telegraf',
},
}
users = {
'telegraf': {
'groups': node.metadata.get('telegraf/additional_groups', set()),
@ -139,5 +145,8 @@ if node.has_bundle('apt'):
users['telegraf']['needs'] = {
'pkg_apt:telegraf',
}
directories['/etc/telegraf/.cache']['needs'] = {
'pkg_apt:telegraf',
}
# Arch users: install telegraf or telegraf-bin from AUR