kolla-ansible/ansible/roles/telegraf/templates/telegraf.json.j2
Bertrand Lallau 8e3cce34a2 Fix Telegraf startup config files issue
Telegraf allow plugin configuration in /etc/telegraf/telegraf.d
directory. These files comes from telegraf/templates/config/*.conf,
but this directory is optional.

Closes-Bug: #1673691

Change-Id: Idc695c86c5f6b6b0bd514728f2025321cd200907
2017-03-20 22:47:31 +01:00

26 lines
734 B
Django/Jinja

{
"command": "telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/",
"config_files": [
{
"source": "{{ container_config_directory }}/telegraf.conf",
"dest": "/etc/telegraf/telegraf.conf",
"owner": "telegraf",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/config/*",
"dest": "/etc/telegraf/telegraf.d/",
"owner": "telegraf",
"perm": "0600",
"optional": true
}
],
"permissions": [
{
"path": "/var/log/kolla/telegraf",
"owner": "telegraf:telegraf",
"recurse": true
}
]
}