diff --git a/ansible/roles/aodh/templates/aodh-api.json.j2 b/ansible/roles/aodh/templates/aodh-api.json.j2 index fc6b0b0815..7dfd8dbe0c 100644 --- a/ansible/roles/aodh/templates/aodh-api.json.j2 +++ b/ansible/roles/aodh/templates/aodh-api.json.j2 @@ -15,5 +15,12 @@ "owner": "root", "perm": "0600" } - ] + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } + ] } diff --git a/ansible/roles/aodh/templates/aodh-evaluator.json.j2 b/ansible/roles/aodh/templates/aodh-evaluator.json.j2 index 220be5a1e0..b900703ca6 100644 --- a/ansible/roles/aodh/templates/aodh-evaluator.json.j2 +++ b/ansible/roles/aodh/templates/aodh-evaluator.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] } diff --git a/ansible/roles/aodh/templates/aodh-listener.json.j2 b/ansible/roles/aodh/templates/aodh-listener.json.j2 index 3b75e64c80..9dd0614d94 100644 --- a/ansible/roles/aodh/templates/aodh-listener.json.j2 +++ b/ansible/roles/aodh/templates/aodh-listener.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] } diff --git a/ansible/roles/aodh/templates/aodh-notifier.json.j2 b/ansible/roles/aodh/templates/aodh-notifier.json.j2 index da910cd2ba..dec117d12d 100644 --- a/ansible/roles/aodh/templates/aodh-notifier.json.j2 +++ b/ansible/roles/aodh/templates/aodh-notifier.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] }