On 4 Jan 2010, at 3:25 pm, Tim Cutts wrote:

>
> On 4 Jan 2010, at 2:52 pm, nwat...@symcor.com wrote:
>
>> Yes.  You can do this.  Here is a recipe with CF version 2.  You'll  
>> have
>> to figure out the Cf 3 way but the principle is the same.
>> http://watson-wilson.ca/blog/cfcookbook.html#SECTION000200000000000000000
>
> That method's a little unwieldy if you have large numbers of  
> clients.  How large can a variable get?  I personally have over 2200  
> machines being managed by cfengine, and if I were to use that  
> recipe, I'd have a 24 kilobyte variable just to hold the names of  
> all the machines.  I also have machines coming and going on an  
> almost daily basis, so I'd have to do something clever to populate  
> that list from an external module.

I've just checked, and certainly cfengine2 by default doesn't like  
variables that large, but it does give a meaningful error:

cfengine:it-admin: Expansion overflow constructing string. Increase  
CF_EXPANDSIZE macro.

So presumably I could solve it by rebuilding cfengine with a much  
larger size for that macro.

Tim


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to