On Mon, Apr 10, 2017 at 05:00:14PM +0200, Baptiste wrote: > On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau <w...@1wt.eu> wrote: > > > On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > > > With server templates, haproxy could preallocate 'server' objects which > > > would derive from 'default-server' (with same settings as default server > > > settings), but with remaining parameters which are unknown at parsing > > time > > > (for instance their names, addresses, anything else). In fact here, > > names or > > > addresses are particular settings: a default server has not any default > > name > > > or default address. > > > > Absolutely. And this combined with the recent features of dynamic > > consistent > > cookies and with Baptiste's upcoming DNS patches will easily result in > > pretty > > dynamic backends! > > > > Willy > > > > > I just had a look at the implementation of server-templates. To make it > work with DNS resolution, we need to find a way to provide a fqdn to the > default-server directive. This might not be too complicated.
I hadn't thought about this one, good point. At least as a first step you'll just have to use the same fqdn for all servers (and thus templates). We definitely want it to be changeable over the CLI. Willy