summaryrefslogtreecommitdiffstats
path: root/roles/etcd_common
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-06-09 15:30:54 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-06-10 12:54:02 +0200
commit7e2c88beadfdc788bcb207028fdd97fa7decf9f1 (patch)
treed19bd93e8e41718a01212106bb5dae46f4862289 /roles/etcd_common
parente651d65dc1e3f53c0ad2e587d7392a31e827c905 (diff)
downloadopenshift-7e2c88beadfdc788bcb207028fdd97fa7decf9f1.tar.gz
openshift-7e2c88beadfdc788bcb207028fdd97fa7decf9f1.tar.bz2
openshift-7e2c88beadfdc788bcb207028fdd97fa7decf9f1.tar.xz
openshift-7e2c88beadfdc788bcb207028fdd97fa7decf9f1.zip
set etcd working directory for embedded etcd
Diffstat (limited to 'roles/etcd_common')
-rw-r--r--roles/etcd_common/defaults/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/etcd_common/defaults/main.yml b/roles/etcd_common/defaults/main.yml
index e1a080b34..de0739c3e 100644
--- a/roles/etcd_common/defaults/main.yml
+++ b/roles/etcd_common/defaults/main.yml
@@ -1,6 +1,7 @@
---
# runc, docker, host
r_etcd_common_etcd_runtime: "docker"
+r_etcd_common_embedded_etcd: false
# etcd server vars
etcd_conf_dir: "{{ '/etc/etcd' if r_etcd_common_etcd_runtime != 'runc' else '/var/lib/etcd/etcd.etcd/etc' }}"
@@ -40,7 +41,7 @@ etcd_is_containerized: False
etcd_is_thirdparty: False
# etcd dir vars
-etcd_data_dir: /var/lib/etcd/
+etcd_data_dir: "{{ '/var/lib/origin/openshift.local.etcd' if r_etcd_common_embedded_etcd | bool else '/var/lib/etcd/' }}"
# etcd ports and protocols
etcd_client_port: 2379