# # Simple script for multi-primary setups # vrrp_sync_group G1 { # must be before vrrp_instance declaration group { VI_1 VI_2 } notify_master "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh primary 1" notify_master_sync notify_backup "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh backup 1" notify_fault "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh fault 1" } vrrp_sync_group G2 { # must be before vrrp_instance declaration group { VI_3 VI_4 } notify_master "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh primary 2" notify_master_sync notify_backup "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh backup 2" notify_fault "/home/pablo/devel/cluster-match-scripts/cluster-node1.sh fault 2" } vrrp_instance VI_1 { interface eth1 state SLAVE virtual_router_id 61 priority 90 advert_int 1 authentication { auth_type PASS auth_pass papas_con_tomate } # not needed - only for testing purposes virtual_ipaddress { 192.168.0.111/24 # default CIDR mask is /32 } } vrrp_instance VI_2 { interface eth2 state SLAVE virtual_router_id 61 priority 90 advert_int 1 authentication { auth_type PASS auth_pass papas_con_tomate } # not needed - only for testing purposes virtual_ipaddress { 192.168.1.111/24 # default CIDR mask is /32 } } vrrp_instance VI_3 { interface eth1 state SLAVE virtual_router_id 62 priority 10 advert_int 1 authentication { auth_type PASS auth_pass papas_con_tomate } # not needed - only for testing purposes virtual_ipaddress { 192.168.0.222/24 # default CIDR mask is /32 } } vrrp_instance VI_4 { interface eth2 state SLAVE virtual_router_id 62 priority 10 advert_int 1 authentication { auth_type PASS auth_pass papas_con_tomate } # not needed - only for testing purposes virtual_ipaddress { 192.168.1.222/24 # default CIDR mask is /32 } }