aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhubingbing <1392607554@qq.com>2016-10-15 18:04:27 +0800
committerzhubingbing <1392607554@qq.com>2016-10-15 19:20:09 +0800
commit226b84331f6e5b1975819c8151152ffe9bae57ed (patch)
tree00f9b191fb3814ae440925a98d8267cf7e05fb06
parentdbf05f076fb2394439afcee95de3922a83f92219 (diff)
downloadkolla-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.j27
-rw-r--r--ansible/roles/magnum/templates/magnum-conductor.json.j212
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
+ }
]
}