Hello Holger,
If nothing else, I would be interested in this script.
Cheers,
Timh
2009/6/12 Holger Just <haproxy#meine-er.de>:
> On 12.06.2009 23:08 Uhr, Joe Williams wrote:
>> I looked through the docs but didn't see anything. Is it possible to
>> include config files from the main config file? So you could do
>> something similar to a vhosts.d directory in Apache or Nginx.
>
> Hello Joe!
>
> Unfortunately, this is not supported by HAProxy itself right now.
>
> However, I wrote a small script which is run as part of my
> /etc/init.d/haproxy (start|reload|restart). This script compiles config
> fragments found in a fixed directory structure into a complete
> /etc/haproxy/haproxy.cfg file.
>
> The script expects the following directory structure. If your are
> interested, I can provide it here.
>
> /etc/haproxy
> defaults
> 00-base
> 10-errorfiles
>
> frontends
> my-first-frontend
> 00-ports
> 10-acls
> 20-backend1
> 21-backend2
> my-second-frontend
> ...
>
> listen
> sect1
> 00-base
> 10-backend1
> sect2
> ...
>
> backends
> my-first-backend
> 00-base
> 10-server1
> 11-server2
> my-second-backend
> ...
>
> --Holger
>
>
-- Timh Bergström System Operations Manager Diino AB - www.diino.com :wqReceived on 2009/06/15 06:36
This archive was generated by hypermail 2.2.0 : 2009/06/15 06:45 CEST