diff options
| author | zhubingbing <1392607554@qq.com> | 2016-10-15 18:04:27 +0800 |
|---|---|---|
| committer | zhubingbing <1392607554@qq.com> | 2016-10-15 19:20:09 +0800 |
| commit | 226b84331f6e5b1975819c8151152ffe9bae57ed (patch) | |
| tree | 00f9b191fb3814ae440925a98d8267cf7e05fb06 | |
| parent | dbf05f076fb2394439afcee95de3922a83f92219 (diff) | |
| download | kolla-226b84331f6e5b1975819c8151152ffe9bae57ed.tar.gz kolla-226b84331f6e5b1975819c8151152ffe9bae57ed.zip | |
Fix magnum upgrade permission issue
Change-Id: I1e9fd7f15f9d5e133dbd3b651b56708a82864245
Partial-Bug: #1631503
| -rw-r--r-- | ansible/roles/magnum/templates/magnum-api.json.j2 | 7 | ||||
| -rw-r--r-- | ansible/roles/magnum/templates/magnum-conductor.json.j2 | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ansible/roles/magnum/templates/magnum-api.json.j2 b/ansible/roles/magnum/templates/magnum-api.json.j2 index c4af2d218..b79de7005 100644 --- a/ansible/roles/magnum/templates/magnum-api.json.j2 +++ b/ansible/roles/magnum/templates/magnum-api.json.j2 @@ -7,5 +7,12 @@ "owner": "magnum", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/magnum", + "owner": "magnum:magnum", + "recurse": true + } ] } diff --git a/ansible/roles/magnum/templates/magnum-conductor.json.j2 b/ansible/roles/magnum/templates/magnum-conductor.json.j2 index 179182991..9114f45e0 100644 --- a/ansible/roles/magnum/templates/magnum-conductor.json.j2 +++ b/ansible/roles/magnum/templates/magnum-conductor.json.j2 @@ -7,5 +7,17 @@ "owner": "magnum", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/lib/kolla/magnum", + "owner": "magnum:magnum", + "recurse": true + }, + { + "path": "/var/log/kolla/magnum", + "owner": "magnum:magnum", + "recurse": true + } ] } |
