[prev in list] [next in list] [prev in thread] [next in thread] 

List:       keepalived-devel
Subject:    Re: [Keepalived-devel] Snippet configuration (conf.d/*)
From:       Sven Hartge <sven () svenhartge ! de>
Date:       2011-01-24 17:43:31
Message-ID: 77in2imcp8v8 () mids ! svenhartge ! de
[Download RAW message or body]

Wido den Hollander <wido@widodh.nl> wrote:
> On Mon, 2011-01-24 at 17:15 +0100, Sven Hartge wrote:

>> Wido den Hollander <wido@widodh.nl> wrote:
>> 
>> > A "snippet configuration" would be very nice for KeepAlived, for
>> > example:
>> 
>> > * /etc/keepalived/keepalived.conf *
>> > global_defs {
>> >    notification_email {
>> >        wido@widodh.nl
>> >    }
>> > }
>> 
>> > include "/etc/keepalived/vrrp.conf"
>> > include "/etc/keepalived/loadbalancing.conf"
>> 
>> > In "vrrp.conf" you would define your VRRP instances and in
>> > "loadbalancing.conf" your Virtual/Real servers.
>> 
>> This already works. The "include"-statement is just a bit ...
>> underdocumented.

> Aha, ok :-) I've been browsing through the source to find any reference
> on how to use it, but I can't find any relevant code.

> Does include "/etc/path/to/file" simply work or are there any cavecats
> in getting it working?

It should just work. But it depends on the version of keepalived you are
using. I believe you need minimum 1.1.15.

Even cascaded includes work (meaning: including a file from inside an
already included file). I have not tested recursive includes, this could
crash the daemon.

Grüße,
Sven.

-- 
Sig lost. Core dumped.


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Keepalived-devel mailing list
Keepalived-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/keepalived-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic