Skip to content

Instantly share code, notes, and snippets.

@etrikp
Created May 15, 2012 13:45
Show Gist options
  • Save etrikp/2701892 to your computer and use it in GitHub Desktop.
Save etrikp/2701892 to your computer and use it in GitHub Desktop.
### Managed by Puppet ###
vrrp_script chk_haproxy {
script "/usr/bin/pgrep -u haproxy -f haproxy"
interval 1
weight 2
}
vrrp_script chk_sshd {
script "/usr/bin/killall -0 sshd"
interval 1
weight 2
}
vrrp_instance ME_LB_VIP {
interface eth0
state BOTH
virtual_router_id 362
priority 102
virtual_ipaddress {
10.1.0.103
}
track_script {
chk_haproxy
chk_sshd
}
}
global_defs {
notification_email {
ryans@aweber.com
}
notification_email_from keepalived+eccluster@aweber.com
smtp_server 127.0.0.1
smtp_connect_timeout 15
router_id p-lb-messageeditor-api2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment