aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-10-17 18:01:27 +0000
committerGerrit Code Review <review@openstack.org>2016-10-17 18:01:27 +0000
commit81e20c72912f18a8a35c3fa975d3b6202574abf1 (patch)
tree09bf7acd8469be2dca0bb7c495a28826cbce76e7
parentab0f274564f0ebb795e646f6ba21b6e6379da787 (diff)
parentecab56a1826ce9f31d0b5da8497240e525afde9a (diff)
downloadkolla-81e20c72912f18a8a35c3fa975d3b6202574abf1.tar.gz
kolla-81e20c72912f18a8a35c3fa975d3b6202574abf1.zip
Merge "Fix common role upgrade permission issue"
-rw-r--r--ansible/roles/common/templates/heka.json.j212
-rw-r--r--ansible/roles/common/templates/kolla-toolbox.json.j28
2 files changed, 19 insertions, 1 deletions
diff --git a/ansible/roles/common/templates/heka.json.j2 b/ansible/roles/common/templates/heka.json.j2
index bb2ae3504..4013c8685 100644
--- a/ansible/roles/common/templates/heka.json.j2
+++ b/ansible/roles/common/templates/heka.json.j2
@@ -101,5 +101,17 @@
}{% if not loop.last %},{% endif %}
{% endfor %}
+ ],
+ "permissions": [
+ {
+ "path": "/var/cache/hekad",
+ "owner": "heka:heka",
+ "recurse": true
+ },
+ {
+ "path": "/var/lib/kolla/heka",
+ "owner": "heka:heka",
+ "recurse": true
+ }
]
}
diff --git a/ansible/roles/common/templates/kolla-toolbox.json.j2 b/ansible/roles/common/templates/kolla-toolbox.json.j2
index 220022a9d..7f0dc0519 100644
--- a/ansible/roles/common/templates/kolla-toolbox.json.j2
+++ b/ansible/roles/common/templates/kolla-toolbox.json.j2
@@ -1,4 +1,10 @@
{
"command": "sleep infinity",
- "config_files": []
+ "config_files": [],
+ "permissions": [
+ {
+ "path": "/var/log/kolla/ansible.log",
+ "owner": "ansible:ansible"
+ }
+ ]
}