From dd0e03d2282d39ea38fa41fb55e10aa937a66cb6 Mon Sep 17 00:00:00 2001 From: David Townshend Date: Fri, 26 May 2017 13:16:06 +0200 Subject: [PATCH] Correct etcd data mount path If the etcd data path is set to anything other that `/var/lib/etcd`, this mount path is not used, and the etcd data is not persisted. --- roles/etcd/templates/etcd.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/etcd/templates/etcd.j2 b/roles/etcd/templates/etcd.j2 index 479d85af8..b0780573c 100644 --- a/roles/etcd/templates/etcd.j2 +++ b/roles/etcd/templates/etcd.j2 @@ -5,7 +5,7 @@ --net=host \ -v /etc/ssl/certs:/etc/ssl/certs:ro \ -v {{ etcd_cert_dir }}:{{ etcd_cert_dir }}:ro \ - -v {{ etcd_data_dir }}:/var/lib/etcd:rw \ + -v {{ etcd_data_dir }}:{{ etcd_data_dir }}:rw \ {% if etcd_memory_limit is defined %} --memory={{ etcd_memory_limit|regex_replace('Mi', 'M') }} \ {% endif %}