On Fri, Aug 5, 2011 at 11:58 PM, Willy Tarreau <[email protected]> wrote: > Hi Baptiste, > > On Fri, Aug 05, 2011 at 11:53:40PM +0200, Baptiste wrote: >> 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 :) > > Once again, if the host is in /etc/hosts, then you don't need to touch > the config anymore. Simply reload it so that it resolves the hosts > again. > > cheers, > Willy > >
Why make things easy when you can make them complicated???? cheers

