Files
proxmox/scripts/npmplus/keepalived/keepalived-primary.conf

39 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

# Keepalived Configuration for Primary Host (r630-01)
# Deploy to: /etc/keepalived/keepalived.conf on primary Proxmox host
#
# Installation:
# 1. Copy this file to /etc/keepalived/keepalived.conf on r630-01
# 2. Update auth_pass with a secure password (must match secondary)
# 3. Ensure check-npmplus-health.sh is in /usr/local/bin/ and executable
# 4. Ensure keepalived-notify.sh is in /usr/local/bin/ and executable
# 5. Start keepalived: systemctl enable keepalived && systemctl start keepalived
vrrp_script chk_npmplus {
script "/usr/local/bin/check-npmplus-health.sh"
interval 5
weight -10
fall 2
rise 2
}
vrrp_instance VI_NPMPLUS {
state MASTER
interface vmbr0
virtual_router_id 51
priority 110
advert_int 1
authentication {
auth_type PASS
auth_pass npmplus_ha_2024_change_me
}
virtual_ipaddress {
192.168.11.166/24
}
track_script {
chk_npmplus
}
notify_master "/usr/local/bin/keepalived-notify.sh master"
notify_backup "/usr/local/bin/keepalived-notify.sh backup"
notify_fault "/usr/local/bin/keepalived-notify.sh fault"
}