aboutsummaryrefslogtreecommitdiff
path: root/docker/etcd
diff options
context:
space:
mode:
authorHui Kang <kangh@us.ibm.com>2016-09-02 00:48:01 -0400
committerzhubingbing <1392607554@qq.com>2016-09-15 03:33:57 +0000
commita5b53f3a7006ee025dc65de99a3749035af79397 (patch)
tree7ec498236a31ea67584033b8eb8feb3b188a64e9 /docker/etcd
parent239cea0c487414e78918b7d542f3bc792c30358f (diff)
downloadkolla-a5b53f3a7006ee025dc65de99a3749035af79397.tar.gz
kolla-a5b53f3a7006ee025dc65de99a3749035af79397.zip
Add etcd ansible role
Change-Id: If8351ab3000006323a05924e907f1e3745768304 Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>> Partially-implements: bp kuryr-docker-plugin
Diffstat (limited to 'docker/etcd')
-rw-r--r--docker/etcd/extend_start.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/etcd/extend_start.sh b/docker/etcd/extend_start.sh
index 485ee8e2d..718de9ebb 100644
--- a/docker/etcd/extend_start.sh
+++ b/docker/etcd/extend_start.sh
@@ -1,5 +1,13 @@
#!/bin/bash
+# Create log directory, with appropriate permissions
+if [[ ! -d "/var/log/kolla/etcd" ]]; then
+ mkdir -p /var/log/kolla/etcd
+fi
+if [[ $(stat -c %a /var/log/kolla/etcd) != "755" ]]; then
+ chmod 755 /var/log/kolla/etcd
+fi
+
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then