Re: Matching host names by regexp

2010-04-20 Thread Mark Burgess
Sorry, I forgot to remove a { classes: "svxx" expression => classmatch("sv.."); Mark Burgess wrote: > Oh, I didn't notice that. But why not simply write > > classes: >"svxx" expression =>{classmatch("sv.."); > > Erlend Leganger wrote: >> I guess it's the and-any construct that looks st

Re: Matching host names by regexp

2010-04-20 Thread Mark Burgess
Oh, I didn't notice that. But why not simply write classes: "svxx" expression =>{classmatch("sv.."); Erlend Leganger wrote: > I guess it's the and-any construct that looks strange to me, it's like > writing a boolean expression with an "and True" at the end: > > if ($condition && 1){ > &do

Re: Matching host names by regexp

2010-04-20 Thread Erlend Leganger
Good point, the servers are identified with two digit numbers, so the regex should match two digit numbers only - thanks. - Erlend On 21 April 2010 07:22, Сева Глущенко wrote: > Hello Erlend, > > It seems like you've got the best way already. You may just narrow > regexp a bit, e.g. > >  classe

Re: Matching host names by regexp

2010-04-20 Thread Erlend Leganger
I guess it's the and-any construct that looks strange to me, it's like writing a boolean expression with an "and True" at the end: if ($condition && 1){ &do_something; } But if this is the best way, I won't complain. - Erlend On 21 April 2010 07:19, Mark wrote: > Why do you say this is convo

Matching host names by regexp

2010-04-20 Thread Erlend Leganger
I have some servers named sv01, sv02, sv03, ... which I need a class for in cf3 community 3.0.2. I have come up with this: classes:    "svxx" and =>{classmatch("sv.."),any}; so that I later can do for example: files:    svxx::       "/etc/passwd"          handle=>"update_passwd",          ... I

Changing clients' policy servers

2010-04-20 Thread Justin Lloyd
I've set up a sandbox policy server distinct from my production one, both running the same version of Cfengine (Nova 1.1.2). If I want to have some of the clients that currently use the production policy server changed to use the sandbox server, would it be sufficient to just change the IP address

Re: Cfengine Help: Re: Interactive key trust

2010-04-20 Thread Nicolas Charles
I guess it's not implemented : https://cfengine.org/pipermail/help-cfengine/2009-October/006318.html fo...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Interactive key trust > Author: cclonch > Link to topic: https://cfengine.com/forum/read.php?3,16843,16941#msg-16941 > > This was my

Cfengine Help: Re: Interactive key trust

2010-04-20 Thread forum
Forum: Cfengine Help Subject: Re: Interactive key trust Author: cclonch Link to topic: https://cfengine.com/forum/read.php?3,16843,16941#msg-16941 This was my understanding. ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/

RE: Cfengine Help: Re: RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread Lebel, Marco
Yeap you are right I was too fancy. Neil did suggest to go about it with two promises... But why listen when you are set in your way My mistake... I am down the two promises path right now and guess what it works Go figure oh well not all is lost I have learnt in the process. So to all

RE: Cfengine Help: Re: RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread Lebel, Marco
So here is what I have tried: body common control { version => "1.0.0"; inputs => { "homeLibrary.cf" }; bundlesequence => { "rename_test" }; } bundle agent rename_test { files: "/tmp/marco" file_select => include("(.*)\.dr"), depth_search => recurse

RE: Cfengine Help: Re: RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread Lebel, Marco
I was about to test the $(match.n) option Something like "dest/dir" file_select => include("(.*)\.dr"), rename => mvto("$(match.1)"), ... ... ... Are you telling me that it is not supported? Me, -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-c

Cfengine Help: Re: RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread forum
Forum: Cfengine Help Subject: Re: RE: Cfengine Help: Re: rename on copy Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,16933,16937#msg-16937 Neil, Marco wants to convert foo.dr to foo, not vice versa. That is body rename doesn't help, too. It would have been helpful

Cfengine Help: Re: RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread forum
Forum: Cfengine Help Subject: Re: RE: Cfengine Help: Re: rename on copy Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,16933,16936#msg-16936 Use the rename body part. http://www.cfengine.org/manuals/cf3-reference.html#rename-in-files

Re: cfengine 2 error in Unmount()

2010-04-20 Thread Mark Burgess
Sorry for the delay. I have been travelling (and stuck in the Volcano cloud). I recommend upgrading to Cfengine 3, because I know you need something to do in your spare time ;-) Mark Michael Durket wrote: >In file do.c (revision 632 in the subversion repository for cfengine 2) at > the ve

cfengine 2 error in Unmount()

2010-04-20 Thread Michael Durket
In file do.c (revision 632 in the subversion repository for cfengine 2) at the very end of the routine UnMount (around line 2350) are these statements: if ((! DONTDO) && (NUMBEROFEDITS > 0)) { SaveItemList(filelist,VFSTAB[VSYSTEMHARDCLASS],VREPOSITORY); AuditLog('y',ptr->audit,ptr->l

RE: Cfengine Help: Re: rename on copy

2010-04-20 Thread Lebel, Marco
I can see doing two separate promises but I still do not know how to mass rename all file with a .dr extension without the .dr extension Any suggestion? Marco struggling with something I thought was simple to do using promises -Original Message- From: help-cfengine-boun...@cfengine.org

Cfengine Help: Re: rename on copy

2010-04-20 Thread forum
Forum: Cfengine Help Subject: Re: rename on copy Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,16922,16932#msg-16932 I don't think this is possible. You might get away with two separate promises. One to copy and the other to rename. __

Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-20 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2 Author: kevinmusker Link to topic: https://cfengine.com/forum/read.php?3,16865,16931#msg-16931 No response to the bug report as yet - we're going to put the patch i

Re: Question on FileExists and imports when upgrading from CF2 to CF3.

2010-04-20 Thread Mark Burgess
TAke a look at http://www.cfengine.org/manuals/cf3-reference.html#ignore_005fmissing_005finputs-in-common Perhaps this is what you need. But see also the special topics guide on teamwork, M Tom Van de Velde wrote: > Hi, > > We have a very specific setup in our cfengine environment. It is th

Question on FileExists and imports when upgrading from CF2 to CF3.

2010-04-20 Thread Tom Van de Velde
Hi, We have a very specific setup in our cfengine environment. It is the result of a separation of people producing the cfengine code and system engineer who will determine what needs to be done on a specific system. It comes down to 2 steps in the cfengine 2 : 1.Determine if a file is there.