kolla-ansible/ansible/roles/telegraf/templates/telegraf.json.j2
caoyuan 01310b8d7f Fix telegraf upgrade permission issue
Change-Id: If906f9a125f2fe11d1deb7eea5af4bcea3feac18
Partial-Bug: #1631503
2016-10-15 18:44:12 +08:00

25 lines
704 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"
}
],
"permissions": [
{
"path": "/var/log/kolla/telegraf",
"owner": "telegraf:telegraf",
"recurse": true
}
]
}