From e95722522a66161d9bb2e6fe4bc4050c962bfcbd Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Mon, 17 Oct 2016 18:06:49 +0800 Subject: [PATCH] Fix influxdb upgrade permission issue Change-Id: I0936a26bd51114e372a89daa463a16e5aac3c477 Partial-Bug: #1631503 --- ansible/roles/influxdb/templates/influxdb.json.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/roles/influxdb/templates/influxdb.json.j2 b/ansible/roles/influxdb/templates/influxdb.json.j2 index 2c4c6b3b09..3ffa2fe3a8 100644 --- a/ansible/roles/influxdb/templates/influxdb.json.j2 +++ b/ansible/roles/influxdb/templates/influxdb.json.j2 @@ -7,5 +7,17 @@ "owner": "influxdb", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/lib/influxdb", + "owner": "influxdb:influxdb", + "recurse": true + }, + { + "path": "/var/log/kolla/influxdb", + "owner": "influxdb:influxdb", + "recurse": true + } ] }