aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-05-01 20:11:45 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-05-03 09:27:51 +0800
commit0fcee87549dc417c152b16e14c31dea6ada84eb7 (patch)
treefdfda2fafecca2f226fed6760de1603977dde897 /ansible/roles/haproxy
parent86a99c463422d3dcbf6849153a4cadd892ed3247 (diff)
downloadkolla-0fcee87549dc417c152b16e14c31dea6ada84eb7.tar.gz
kolla-0fcee87549dc417c152b16e14c31dea6ada84eb7.zip
map the host localtime to the container
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
Diffstat (limited to 'ansible/roles/haproxy')
-rw-r--r--ansible/roles/haproxy/tasks/start.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/tasks/start.yml b/ansible/roles/haproxy/tasks/start.yml
index 7ad4d106a..0909b33b0 100644
--- a/ansible/roles/haproxy/tasks/start.yml
+++ b/ansible/roles/haproxy/tasks/start.yml
@@ -8,6 +8,7 @@
privileged: True
volumes:
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
+ - "/etc/localtime:/etc/localtime:ro"
- "haproxy_socket:/var/lib/kolla/haproxy/"
- "heka_socket:/var/lib/kolla/heka/"
@@ -20,6 +21,7 @@
privileged: True
volumes:
- "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro"
+ - "/etc/localtime:/etc/localtime:ro"
- "/lib/modules:/lib/modules:ro"
- "haproxy_socket:/var/lib/kolla/haproxy/"
- "heka_socket:/var/lib/kolla/heka/"