We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request an implementation for a fail over script the reason for that is to control cloud floating public ip addresses
for example
`export DO_TOKEN='digitalocean_api_token' IP='reserved_ip_addr' ID=$(curl -s http://169.254.169.254/metadata/v1/id) HAS_RESERVED_IP=$(curl -s http://169.254.169.254/metadata/v1/reserved_ip/ipv4/active)
if [ $HAS_RESERVED_IP = "false" ]; then n=0 while [ $n -lt 10 ] do python /usr/local/bin/assign-ip $IP $ID && break n=$((n+1)) sleep 3 done fi`
this will be the same as having a keepalived script as mentioned in this docs
https://www.digitalocean.com/community/tutorials/how-to-set-up-highly-available-web-servers-with-keepalived-and-reserved-ips-on-ubuntu-14-04#collecting-the-private-ip-addresses-of-your-servers
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Request an implementation for a fail over script
the reason for that is to control cloud floating public ip addresses
for example
`export DO_TOKEN='digitalocean_api_token'
IP='reserved_ip_addr'
ID=$(curl -s http://169.254.169.254/metadata/v1/id)
HAS_RESERVED_IP=$(curl -s http://169.254.169.254/metadata/v1/reserved_ip/ipv4/active)
if [ $HAS_RESERVED_IP = "false" ]; then
n=0
while [ $n -lt 10 ]
do
python /usr/local/bin/assign-ip $IP $ID && break
n=$((n+1))
sleep 3
done
fi`
this will be the same as having a keepalived script as mentioned in this docs
https://www.digitalocean.com/community/tutorials/how-to-set-up-highly-available-web-servers-with-keepalived-and-reserved-ips-on-ubuntu-14-04#collecting-the-private-ip-addresses-of-your-servers
The text was updated successfully, but these errors were encountered: