Fix CICD playbooks
This commit is contained in:
@@ -30,7 +30,4 @@
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: Restart_keepalived
|
||||
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "12"
|
||||
|
||||
|
||||
|
||||
when: ansible_distribution == "Debian" and ( ansible_distribution_major_version == "12" or ansible_distribution_major_version == "13" )
|
||||
|
||||
@@ -20,7 +20,7 @@ frontend kubernetes_api
|
||||
|
||||
backend k8s_masters
|
||||
option tcp-check
|
||||
balance roundrobin
|
||||
balance source
|
||||
{% for srv in haproxy_backend_server %}
|
||||
server {{ srv.backend_name }} {{ srv.backend_ip }}:{{ srv.backend_port }} check fall 3 rise 2
|
||||
server {{ srv.backend_name }} {{ srv.backend_ip }}:{{ srv.backend_port }} check inter 5s fall 3 rise 2
|
||||
{% endfor %}
|
||||
|
||||
@@ -6,10 +6,9 @@ pkg_list:
|
||||
|
||||
haproxy_bind_port: "6443"
|
||||
haproxy_backend_server:
|
||||
- { backend_name: "k8s-cr01", backend_ip: "192.168.111.191", backend_port: "6443"}
|
||||
- { backend_name: "k8s-cr02", backend_ip: "192.168.111.192", backend_port: "6443"}
|
||||
- { backend_name: "k8s-cr03", backend_ip: "192.168.111.193", backend_port: "6443"}
|
||||
- { backend_name: "k8s01-ctr01.lab.loc", backend_ip: "192.168.1.101", backend_port: "6443"}
|
||||
- { backend_name: "k8s01-ctr02.lab.loc", backend_ip: "192.168.1.102", backend_port: "6443"}
|
||||
- { backend_name: "k8s01-ctr03.lab.loc", backend_ip: "192.168.1.103", backend_port: "6443"}
|
||||
|
||||
keepalived_vip: "192.168.111.190/24"
|
||||
keepalived_vip: "192.168.1.190/24"
|
||||
keepalived_auth_pass: "1q2w3e4r"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user