-
-
Save superstes/e94173fb75b0d7f1dd6ff9d7fa7b8981 to your computer and use it in GitHub Desktop.
LinuxHA (CRM/Corosync/Pacemaker) - Config for basic service cluster with floating IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash > crm configure | |
property no-quorum-policy=ignore | |
property stonith-enabled=false | |
primitive resHAProxy systemd:haproxy \ | |
op monitor interval=5 | |
clone clone_HAProxy resHAProxy | |
primitive resIP_LB IPaddr2 \ | |
params ip=172.x.x.x nic=ens18 cidr_netmask=32 \ | |
op monitor interval=10s \ | |
meta target-role=Started | |
location cli-prefer-resIP_LB resIP_LB role=Started inf: node01 # prefer node01 if available | |
primitive resPingGW ocf:pacemaker:ping \ | |
params host_list=172.x.x.x \ | |
op monitor interval=2s timeout=60 on-fail=restart | |
clone resPingGW resPingGW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment