CFEngine Help: Matching files and replacing files with regex

2012-03-30 Thread no-reply
Forum: CFEngine Help Subject: Matching files and replacing files with regex Author: Devastator101 Link to topic: https://cfengine.com/forum/read.php?3,25425,25425#msg-25425 Hi guys, I would like to know how to replace files using regex built in cfengine. I would like to replace .conf files in a

Re: CFEngine Help: Re: insert_lines and file select

2012-03-30 Thread Nick Anderson
On 03/30/2012 11:36 AM, Oace, Tod R wrote: >> Author: tuibelgium >> Link to topic: https://cfengine.com/forum/read.php?3,25409,25417#msg-25417 >> >> So there is no such thing as: >> >> vars: >> "file" slist => fileselect( .* ) > > > The lsdir() added in 3.3.0 seems like what you want. > https://c

Re: CFEngine Help: Re: insert_lines and file select

2012-03-30 Thread Oace, Tod R
> Author: tuibelgium > Link to topic: https://cfengine.com/forum/read.php?3,25409,25417#msg-25417 > > So there is no such thing as: > > vars: > "file" slist => fileselect( .* ) The lsdir() added in 3.3.0 seems like what you want. https://cfengine.com/manuals/cf3-reference#Function-lsdir -- To

Re: Passing an array to a bundle as an argument

2012-03-30 Thread Nicolas Charles
Hi Sil, The syntax for an array and a list is not the same, hence the problem. The @ is only for list, to pass an array, you only pass its name (with the context) as a parameter, and then you use its name to get the values, as in the following code. bundle agent pip_example { vars:

Passing an array to a bundle as an argument

2012-03-30 Thread Sil Westerveld
Hello, We're trying to pass an array as an argument to a bundle. However, it doesn't work like expected. The relevant code-snippets (in the files promises.cf and pip_lib.cf) are: ### promises.cf ### body common control { bundlesequence => { pip_example }; inputs => { "cfen

[ANNOUNCE] CFEngine Community 3.3.0beta2 is released

2012-03-30 Thread Mikhail Gusarov
Good day. CFEngine Community 3.3.0beta2 is now available for testing. Notable changes since beta1: - Major overhaul of lastseen database. This change should radically decrease I/O contention on this database for busy servers. Please test extensively in your test environment, and report

CFEngine Help: Re: installing specific packages from local directory

2012-03-30 Thread no-reply
Forum: CFEngine Help Subject: Re: installing specific packages from local directory Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25415,25418#msg-25418 vars: 'epelrpm' string => 'epel-release'; 'epelrpm' string => '6-5'; 'epelrpm' string => 'noa

CFEngine Help: Re: insert_lines and file select

2012-03-30 Thread no-reply
Forum: CFEngine Help Subject: Re: insert_lines and file select Author: tuibelgium Link to topic: https://cfengine.com/forum/read.php?3,25409,25417#msg-25417 So there is no such thing as: vars: "file" slist => fileselect( .* ) ___ Help-cfengine mailing

installing specific packages from local directory

2012-03-30 Thread Denis Zinevich
Hello all, can someone clarify what is right way for installing rpm's from local directory ? I can do this with command: rpm -i but that does not seem to be right way. I've tried to get use of some bodis from stdlib, but all of them seems to be much more complex and flexible than i nee