CFEngine Help: Re: What are you using modules for?

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: What are you using modules for? Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,25331,25357#msg-25357 JarleB Wrote: > we only consider modules when it is impossible or > cumbersome to do it in the configuration and then > preferably for dete

CFEngine Help: Re: Testing variable types

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Testing variable types Author: n...@cmdln.org Link to topic: https://cfengine.com/forum/read.php?3,25321,25356#msg-25356 I think I wasn't very clear. I see that in the copbl both edit_line append_if_no_line(str) and edit_line append_if_no_lines(list) are present

CFEngine Help: Re: nfs mount strange behaviour in aix

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: nfs mount strange behaviour in aix Author: skel84 Link to topic: https://cfengine.com/forum/read.php?3,25247,25355#msg-25355 neilhwatson Wrote: --- > What version are you using? Can you perform the > same test o

Re: What are you using modules for?

2012-03-22 Thread Ted Zlatanov
On Tue, 20 Mar 2012 21:53:37 -0500 Nick Anderson wrote: NA> I'm just curious. At what point do you decide a module is better than doing things natively? At JOB^1 I wrote a Perl script to look up company inventory metadata and feed it to cfengine through the module interface. The script was m

CFEngine Help: Re: Testing variable types

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Testing variable types Author: JarleB Link to topic: https://cfengine.com/forum/read.php?3,25321,25353#msg-25353 There isn't any dynamic type casting in cfengine3 when variables are created (like perl for instance). You must tell if is a string or and slist in th

CFEngine Help: Re: Help with packages

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Help with packages Author: JarleB Link to topic: https://cfengine.com/forum/read.php?3,25312,25352#msg-25352 Hello, I suggest you try with package_policy => 'addupdate'; since you explicitly specify a version, and I think t

CFEngine Help: Re: What are you using modules for?

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: What are you using modules for? Author: JarleB Link to topic: https://cfengine.com/forum/read.php?3,25331,25351#msg-25351 Hello Nick, we only consider modules when it is impossible or cumbersome to do it in the configuration and then preferably for detecting add

CFEngine Help: Re: CFEngine Help: Performing a simple edit with replace_patterns

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Performing a simple edit with replace_patterns Author: daveseff Link to topic: https://cfengine.com/forum/read.php?3,25345,25350#msg-25350 I figured out my problem. Classic case of a bad copy/paste from a previous promise. Turns out I had this as

CFEngine Help: Re: What are you using modules for?

2012-03-22 Thread no-reply
Forum: CFEngine Help Subject: Re: What are you using modules for? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25331,25349#msg-25349 I can recall using a module only twice. Once was to diff some Iptables rules. I've seen abandoned that. The other was to perform some

Re: What are you using modules for?

2012-03-22 Thread Bas van der Vlies
On 03/21/2012 03:53 AM, Nick Anderson wrote: I'm just curious. At what point do you decide a module is better than doing things natively? -- I am using a module to initialize classes or variables. Some time cfengine is too late with setting the classes/variables. We have a init_node module t

Re: What are you using modules for?

2012-03-22 Thread Nicolas Charles
Hi, We're using module only when with have to interact with something that cannot be interacted with in a standard CFEngine way (command execution, file edition, etc), but only to read values, not to change the status of the system (CFEngine can always do it) For instance, to manage our rout