> Why don't you edit the haproxy conf directly and reload it ? If you have the
> new IP and are going to update the /etc/hosts, what is stopping you from
> doing a sed on the backend's ip in haproxy.cfg ?
>
>
> Or, you could just run in a VPC and stop doing weird stuff with your
> networking ;)
>
>
> Julien
>


Or using some kind of haproxy conf template with some keyword you
replace using sed with IPs you would get from the hosts file?
with inotify, you can get updated each time hosts file change, then
you generate a new haproxy conf from your template and you ask haproxy
to reload it :)
brilliant !

cheers

Reply via email to