From 01310b8d7f4dc07fa03bab511c9fdb59ee918c5f Mon Sep 17 00:00:00 2001 From: caoyuan Date: Sat, 15 Oct 2016 18:44:12 +0800 Subject: [PATCH] Fix telegraf upgrade permission issue Change-Id: If906f9a125f2fe11d1deb7eea5af4bcea3feac18 Partial-Bug: #1631503 --- ansible/roles/telegraf/templates/telegraf.json.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ansible/roles/telegraf/templates/telegraf.json.j2 b/ansible/roles/telegraf/templates/telegraf.json.j2 index 324d4efb8e..74ed2e928e 100644 --- a/ansible/roles/telegraf/templates/telegraf.json.j2 +++ b/ansible/roles/telegraf/templates/telegraf.json.j2 @@ -13,5 +13,12 @@ "owner": "telegraf", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/telegraf", + "owner": "telegraf:telegraf", + "recurse": true + } ] }