Re: CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-12-09 Thread Marco Marongiu
Il 05/12/2011 16:33, Marco Marongiu ha scritto: > Let's see what I can turn up with with your suggestions. OK, I seem to have made it. It was hard, damn how it was. We should really meditate on this. Having a common block of reusable code should be far easier than this... Here's a summary of how

Re: CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-12-05 Thread Marco Marongiu
Thanks for all the answers. I was supposed to work on this today, but I haven't started yet due to a runaway meeting :-D Let's see what I can turn up with with your suggestions. Thanks a lot again -- bronto ___ Help-cfengine mailing list Help-cfengine

CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-12-05 Thread no-reply
Forum: CFEngine Help Subject: Re: downsizing a huge policy file, sensibly Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,24050,24187#msg-24187 David, Marco this is a very helpful strategy. In my implementation I had been including a control class before calling the

CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-11-30 Thread no-reply
Forum: CFEngine Help Subject: Re: downsizing a huge policy file, sensibly Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,24050,24114#msg-24114 Marco: Basically, as Todd says. (Thanks, Todd!). Below is a variant of the last box in my earlier reply, but simplifying the

CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-11-30 Thread no-reply
Forum: CFEngine Help Subject: Re: downsizing a huge policy file, sensibly Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,24050,24108#msg-24108 Hi marco, to pass a list you need to use list's full qualified name ntp("@(bundle_where_var_is_defined.ntpconf

Re: CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-11-29 Thread Marco Marongiu
Hi David I tried to work out something based on your advice, but it seems I can't make it work. My idea was: - load a policy file called ntp.cf, always, and a location specific one, say ntp_x.cf for location x; - in ntp_x.cf, define an array which will hold values depending on the machine being

CFEngine Help: Re: downsizing a huge policy file, sensibly

2011-11-23 Thread no-reply
Forum: CFEngine Help Subject: Re: downsizing a huge policy file, sensibly Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,24050,24053#msg-24053 Locally we have several cases where we want to apply different data in different environments but in standard ways. These include

Re: downsizing a huge policy file, sensibly

2011-11-23 Thread Mark Burgess
Marco, try not to think modules and programming but reusable patterns. Ask yourself how you can reduce the total amount if information in the policy. If it can't be reduced then the complexity is real - and there is nothing you can do, except limit the amount of info that is useless to the indi

downsizing a huge policy file, sensibly

2011-11-23 Thread Marco Marongiu
Hi all My ntp.cf has grown to nearly 800 lines now. Location-dependent setting are the biggest part of it, while a smaller part (files, processes, reports, and commands promises) is common for all locations. I'd like to reduce its size to something more manageable. I was considering to write a mo