On 19/05/2011 06:55, Aleksey Tsalolikhin wrote:
> On Wed, May 18, 2011 at 7:22 AM, Nicolas Charles
> <nicolas.char...@normation.com>  wrote:
>>
>> What do you call local promises ?
>
> Promises that you write, as opposed to promises written at cfengine.org
> and shipped with Cfengine.
>
> The logical place to put your promises, it seems to me, is in promises.cf --
> that's where the body common control is, so it's the only place, isn't it.
> you can't have to body common controls.  and it's the starting place,
> so you want to put policies where they'll be seen by the sysadmin starting
> to look for them.
>
> I guess what confused me is the site.cf "site-specific configuration".
> I think it's weird that Cfengine by default will edit /etc/resolv.conf to put
> cfengine.com in the search path.  I would think each site would want
> to set their own search path.  Anyway, I'm not sure what site.cf is....
> or why it is a separate file from promises.cf.
>
> I guess I ADD things to promises.cf and CHANGE things is site.cf.
>
> *scratches head*
>
> Aleksey

Sorry, I was on holidays and forgot to follow up on this mail

Nick answered already most of your question, but i'd like to add that I 
usually put in promises.cf only promises related to cfengine behavior 
(which inputs to load, the bundlesequence based on classes, how to 
restart a component if it needs to be restarted, and so on). It's the 
skeleton of my system, and then I expand it with other promises files 
(with hopefully logical names) that are included in the promises.cf

Since the sum of all promises can be quite large, i feel it easier to 
manage that way... but there is more than one way to do it

Best regards
Nicolas
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to