Created
July 18, 2014 19:07
-
-
Save dgvncsz0f/c5b43ebc1db832769cab to your computer and use it in GitHub Desktop.
/usr/bin/webleela-haproxy-servers
This file contains hidden or 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
cat /usr/bin/webleela-haproxy-servers | |
#!/bin/sh | |
for ip in $(dig +tcp +short webleela.service.ita.consul.locaweb.com.br. | sort) | |
do | |
echo " server" $(echo -n ${ip} | sed s/\\./_/g) ${ip}:4080 maxconn 64 check | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment