I would imagine you would dynamically create the haproxy configuration
based on the sources you're using to fill your variables.  I'll be doing
something similar, soon, where the configuration is dynamically built based
on entries in a database.


Thank you,
William Attwood
System Engineer, Co-Founder
Open Box I.T. Solutions, LLC
c. 801-634-6479


On Tue, Feb 5, 2013 at 2:50 PM, Joel Krauska <[email protected]> wrote:

> I know there's been some pushback about adding 'include' support in to
> haproxy config files.
>
> One of the main reasons I would like that feature is to allow for more
> dynamic configs.
>
> I've come to wonder if some templating/loops couldn't be built in to the
> haproxy config parser itself.
>
> eg.
>
> backend foo
>         # List of servers
>         %
>          for (var i=1;i<8;i++)
>           {server app-$i app-$1:8080 maxconn 255 weight 10}
>         %
>
> Any other interest in seeing this?
>
> I imagine there are standardized approaches for doing this sort of thing.
>
> --Joel
>

Reply via email to