aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhubingbing <1392607554@qq.com>2016-10-14 17:53:40 +0800
committerzhubingbing <1392607554@qq.com>2016-10-15 20:00:14 +0800
commitb361fe8ea29c16a4115639c300f013a6823b76f4 (patch)
treefd3f3cae4663dfd0a73d8e7c63b2c5a91deace85
parentdbf05f076fb2394439afcee95de3922a83f92219 (diff)
downloadkolla-b361fe8ea29c16a4115639c300f013a6823b76f4.tar.gz
kolla-b361fe8ea29c16a4115639c300f013a6823b76f4.zip
Fix heat upgrade permission issue
Change-Id: I666368dcb2dd900234b373bfd433ab918233c601 Partial-Bug: #1631503
-rw-r--r--ansible/roles/heat/templates/heat-api-cfn.json.j27
-rw-r--r--ansible/roles/heat/templates/heat-api.json.j29
-rw-r--r--ansible/roles/heat/templates/heat-engine.json.j27
3 files changed, 22 insertions, 1 deletions
diff --git a/ansible/roles/heat/templates/heat-api-cfn.json.j2 b/ansible/roles/heat/templates/heat-api-cfn.json.j2
index 6d10c115f..30f266582 100644
--- a/ansible/roles/heat/templates/heat-api-cfn.json.j2
+++ b/ansible/roles/heat/templates/heat-api-cfn.json.j2
@@ -7,5 +7,12 @@
"owner": "heat",
"perm": "0600"
}
+ ],
+ "permissions": [
+ {
+ "path": "/var/log/kolla/heat",
+ "owner": "heat:heat",
+ "recurse": true
+ }
]
}
diff --git a/ansible/roles/heat/templates/heat-api.json.j2 b/ansible/roles/heat/templates/heat-api.json.j2
index 495ba4ec2..c198cbf4b 100644
--- a/ansible/roles/heat/templates/heat-api.json.j2
+++ b/ansible/roles/heat/templates/heat-api.json.j2
@@ -7,5 +7,12 @@
"owner": "heat",
"perm": "0600"
}
- ]
+ ],
+ "permissions": [
+ {
+ "path": "/var/log/kolla/heat",
+ "owner": "heat:heat",
+ "recurse": true
+ }
+ ]
}
diff --git a/ansible/roles/heat/templates/heat-engine.json.j2 b/ansible/roles/heat/templates/heat-engine.json.j2
index 19bf349e9..40d76a08f 100644
--- a/ansible/roles/heat/templates/heat-engine.json.j2
+++ b/ansible/roles/heat/templates/heat-engine.json.j2
@@ -13,5 +13,12 @@
"owner": "heat",
"perm": "0600"
}
+ ],
+ "permissions": [
+ {
+ "path": "/var/log/kolla/heat",
+ "owner": "heat:heat",
+ "recurse": true
+ }
]
}