Re: haproxy include config

From: Timh Bergström <timh.bergstrom#diino.net>
Date: Mon, 15 Jun 2009 06:36:31 +0200


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
:wq
Received on 2009/06/15 06:36

This archive was generated by hypermail 2.2.0 : 2009/06/15 06:45 CEST