summaryrefslogtreecommitdiffstats
path: root/roles/etcd/templates
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-10-13 15:33:15 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-10-13 15:33:15 +0200
commit641be9236ef8bf7cb4eb27b2d333bdf9aef8e0a5 (patch)
tree079a9cd08d2f37c17c40793d18e80ac915fdf8e7 /roles/etcd/templates
parent12469e264fc10b17fb837b6c15e3c211a21aef3f (diff)
downloadopenshift-641be9236ef8bf7cb4eb27b2d333bdf9aef8e0a5.tar.gz
openshift-641be9236ef8bf7cb4eb27b2d333bdf9aef8e0a5.tar.bz2
openshift-641be9236ef8bf7cb4eb27b2d333bdf9aef8e0a5.tar.xz
openshift-641be9236ef8bf7cb4eb27b2d333bdf9aef8e0a5.zip
set initial etcd cluster properly during system container scale up
Diffstat (limited to 'roles/etcd/templates')
-rw-r--r--roles/etcd/templates/etcd.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/etcd/templates/etcd.conf.j2 b/roles/etcd/templates/etcd.conf.j2
index 8462bb4c8..3027a9447 100644
--- a/roles/etcd/templates/etcd.conf.j2
+++ b/roles/etcd/templates/etcd.conf.j2
@@ -29,8 +29,8 @@ ETCD_INITIAL_CLUSTER={{ etcd_hostname}}={{ etcd_initial_advertise_peer_urls }}
ETCD_INITIAL_CLUSTER_STATE={{ etcd_initial_cluster_state }}
ETCD_INITIAL_CLUSTER_TOKEN=thirdparty-etcd-cluster-1
{% else %}
-{% if initial_etcd_cluster is defined and initial_etcd_cluster %}
-ETCD_INITIAL_CLUSTER={{ initial_etcd_cluster }}
+{% if etcd_initial_cluster is defined and etcd_initial_cluster %}
+ETCD_INITIAL_CLUSTER={{ etcd_initial_cluster }}
{% else %}
ETCD_INITIAL_CLUSTER={{ initial_cluster() }}
{% endif %}