Skip to content

Instantly share code, notes, and snippets.

View pconerly's full-sized avatar
💭
doing code archeology

Peter Conerly pconerly

💭
doing code archeology
View GitHub Profile
@pconerly
pconerly / eip_failover.sh
Last active September 19, 2015 01:06 — forked from Ashex/eip_failover.sh
EIP failover
#!/bin/sh
# This script will monitor another HA node and take over an Elastic IP (EIP)
# if communication with the other node fails
# High Availability IP variables
# Other node's IP to ping and EIP to swap if other node goes down
HA_Node_IP=10.0.0.11
EIP=10.0.0.10
#Specify the Secondary Private IP for this node