File tree 7 files changed +12
-15
lines changed
7 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1
- backend = "etcd "
1
+ backend = "etcdv3 "
2
2
interval = 10
3
3
watch = true
4
4
nodes = [
Original file line number Diff line number Diff line change 116
116
117
117
- block :
118
118
- name : Wait until the etcd cluster is healthy
119
- command : /usr/local/bin/etcdctl cluster-health
120
- environment :
121
- ETCDCTL_API : 2
119
+ command : >
120
+ /usr/local/bin/etcdctl endpoint health
121
+ --endpoints=http://{{ inventory_hostname }}:2379
122
122
register : etcd_health_result
123
- run_once : true
124
- changed_when : false
125
- until : " 'cluster is healthy' in etcd_health_result.stdout"
123
+ until : " 'is healthy' in etcd_health_result.stdout"
126
124
retries : 10
127
125
delay : 10
126
+ changed_when : false
128
127
ignore_errors : false
129
128
130
129
- name : cluster health
131
- run_once : true
132
130
debug :
133
- var : etcd_health_result.stdout_lines
131
+ msg : " {{ etcd_health_result.stdout }} "
134
132
tags : etcd, etcd_start, etcd_status
135
133
136
134
...
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ ETCD_DATA_DIR="{{ etcd_data_dir }}"
10
10
ETCD_ELECTION_TIMEOUT="5000"
11
11
ETCD_HEARTBEAT_INTERVAL="1000"
12
12
ETCD_INITIAL_ELECTION_TICK_ADVANCE="false"
13
- ETCD_ENABLE_V2="true"
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ restapi:
30
30
# password: password
31
31
32
32
{% if not dcs_exists |bool and dcs_type == 'etcd' %}
33
- etcd :
33
+ etcd3 :
34
34
hosts: {% for host in groups ['etcd_cluster' ] %} {{ hostvars[host] ['inventory_hostname'] }}:2379{% if not loop .last %} ,{% endif %}{% endfor %}
35
35
{% endif %}
36
36
{% if dcs_exists |bool and dcs_type == 'etcd' %}
37
- etcd :
37
+ etcd3 :
38
38
hosts: {% for etcd_hosts in patroni_etcd_hosts %} {{etcd_hosts.host}}:{{etcd_hosts.port}}{% if not loop .last %} ,{% endif %}{% endfor %}
39
39
{% endif %}
40
40
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ postgresql_packages:
58
58
# - postgresql-{{ postgresql_version }}-repack"
59
59
60
60
# Extra packages
61
- etcd_package_repo : " https://github.com/etcd-io/etcd/releases/download/{{ etcd_ver }}/etcd-{{ etcd_ver }}-linux-amd64.tar.gz"
61
+ etcd_package_repo : " https://github.com/etcd-io/etcd/releases/download/v {{ etcd_ver }}/etcd-v {{ etcd_ver }}-linux-amd64.tar.gz"
62
62
vip_manager_package_repo : " https://github.com/cybertec-postgresql/vip-manager/releases/download/v{{ vip_manager_version }}/vip-manager_{{ vip_manager_version }}-1_amd64.deb"
63
63
# (if with_haproxy_load_balancing: true)
64
64
haproxy_installation_method : " deb" # (default)"deb" or "src"
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ postgresql_packages:
79
79
# - pg_repack{{ postgresql_version_terse }}
80
80
81
81
# Extra packages
82
- etcd_package_repo : " https://github.com/etcd-io/etcd/releases/download/{{ etcd_ver }}/etcd-{{ etcd_ver }}-linux-amd64.tar.gz"
82
+ etcd_package_repo : " https://github.com/etcd-io/etcd/releases/download/v {{ etcd_ver }}/etcd-v {{ etcd_ver }}-linux-amd64.tar.gz"
83
83
vip_manager_package_repo : " https://github.com/cybertec-postgresql/vip-manager/releases/download/v{{ vip_manager_version }}/vip-manager-{{ vip_manager_version }}-1.x86_64.rpm"
84
84
# (if with_haproxy_load_balancing: true)
85
85
haproxy_installation_method : " rpm" # (default)"rpm" or "src"
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ dcs_exists: false # or 'true' if you don't want to deploy a new etcd cluster
52
52
dcs_type : " etcd" # or 'consul'
53
53
54
54
# if dcs_type: "etcd" and dcs_exists: false
55
- etcd_ver : " v3.3.27 " # version for deploy etcd cluster
55
+ etcd_ver : " 3.5.7 " # version for deploy etcd cluster
56
56
etcd_data_dir : " /var/lib/etcd"
57
57
etcd_cluster_name : " etcd-{{ patroni_cluster_name }}" # ETCD_INITIAL_CLUSTER_TOKEN
58
58
You can’t perform that action at this time.
0 commit comments