Add vrrp check script for Keepalived on DBS nodes
Change-Id: Iad51dc7aebc5704a7870d4b3451cbb4d8fddb4bd
Related-bug: PROD-24012
diff --git a/defaults/keepalived/init.yml b/defaults/keepalived/init.yml
index f39d80e..6d457e5 100644
--- a/defaults/keepalived/init.yml
+++ b/defaults/keepalived/init.yml
@@ -1,3 +1,4 @@
parameters:
_param:
keepalived_openstack_web_vrrp_script_check_pidof_args: "nginx"
+ keepalived_galera_vrrp_script_check_pidof_args: "/usr/sbin/haproxy"
diff --git a/galera/server/cluster.yml b/galera/server/cluster.yml
index ba2a3ff..e215910 100644
--- a/galera/server/cluster.yml
+++ b/galera/server/cluster.yml
@@ -1,4 +1,4 @@
classes:
-- service.keepalived.cluster.single
- service.haproxy.proxy.single
- system.haproxy.proxy.listen.openstack.galera
+- system.keepalived.cluster.instance.galera_vip
diff --git a/keepalived/cluster/instance/galera_vip.yml b/keepalived/cluster/instance/galera_vip.yml
new file mode 100644
index 0000000..8b0a462
--- /dev/null
+++ b/keepalived/cluster/instance/galera_vip.yml
@@ -0,0 +1,14 @@
+classes:
+- service.keepalived.cluster.single
+parameters:
+ keepalived:
+ cluster:
+ vrrp_scripts:
+ check_pidof:
+ args: ${_param:keepalived_galera_vrrp_script_check_pidof_args}
+ interval: 10
+ rise: 1
+ fall: 1
+ instance:
+ VIP:
+ track_script: check_pidof