bundles/telegraf: add cache directory
This commit is contained in:
parent
5885e4b043
commit
3775bcb9db
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue