Skip to content

Commit

Permalink
compatibility with etcd version 3.4.x (#12)
Browse files Browse the repository at this point in the history
We need to make sure the etcd v2 protocol is enabled.

tested with etcd v3.4.3
  • Loading branch information
vitabaks committed Feb 20, 2020
1 parent a226a20 commit 1b05ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/etcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
- block:
- name: etcd cluster | wait until the etcd cluster is healthy
command: /usr/local/bin/etcdctl cluster-health
environment:
ETCDCTL_API: 2
register: etcd_health_result
run_once: true
changed_when: false
Expand Down
1 change: 1 addition & 0 deletions templates/etcd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_DATA_DIR="{{ etcd_data_dir }}"
ETCD_ELECTION_TIMEOUT="5000"
ETCD_HEARTBEAT_INTERVAL="1000"
ETCD_ENABLE_V2="true"

0 comments on commit 1b05ba5

Please sign in to comment.