CFEngine Help: Re: Edit selected files

2011-12-13 Thread no-reply
Forum: CFEngine Help Subject: Re: Edit selected files Author: lauwersw Link to topic: https://cfengine.com/forum/read.php?3,17747,24272#msg-24272 Thanks, but I gave up on it and did two things: hardcode the few files I needed (which is very inflexible as they might change behind my back whenever

CFEngine Help: Re: Edit selected files

2011-12-12 Thread no-reply
Forum: CFEngine Help Subject: Re: Edit selected files Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,17747,24267#msg-24267 I also couldn't get file selection rules to work using the "/path/to/*/*.pl" files promises. So what I ended up doing is writing a module using find to

CFEngine Help: Re: Edit selected files

2011-12-12 Thread no-reply
Forum: CFEngine Help Subject: Re: Edit selected files Author: ariswin Link to topic: https://cfengine.com/forum/read.php?3,17747,24266#msg-24266 I also have the same problem about the codes, still trying to figure it out ___ Help-cfengine mailing list H

CFEngine Help: Re: Edit selected files

2011-12-08 Thread no-reply
Forum: CFEngine Help Subject: Re: Edit selected files Author: lauwersw Link to topic: https://cfengine.com/forum/read.php?3,17747,24236#msg-24236 Hi, Sorry for reviving an old thread, but i'm hitting a very similar problem. I could solve it with the examples listed in the bug report 190, but

Cfengine Help: Re: RE: Cfengine Help: Re: Edit selected files

2010-08-16 Thread no-reply
Forum: Cfengine Help Subject: Re: RE: Cfengine Help: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17871,17923#msg-17923 I found that using the usemodule function rather than invoking the module as a command eliminated the unwanted messages

Cfengine Help: Re: RE: Cfengine Help: Re: Edit selected files

2010-08-10 Thread no-reply
Forum: Cfengine Help Subject: Re: RE: Cfengine Help: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17871,17879#msg-17879 For me no_output => "true" only suppresses the "M" message. The other two are still logged: -> Execut

RE: Cfengine Help: Re: Edit selected files

2010-08-10 Thread Anderson, Ryan C (US SSA)
612-419-9362 -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Monday, August 09, 2010 9:46 AM To: help-cfengine@cfengine.org Subject: Cfengine Help: Re: Edit selected files Forum: Cfengine H

Cfengine Help: Re: Edit selected files

2010-08-09 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17870#msg-17870 For anyone interested the bug report I opened (190) was closed with no resolution. It was stated that allowing a file_select with edit_line is "too b

Re: Cfengine Help: Re: Edit selected files

2010-07-26 Thread Michael Potter
Hi Beto I believe you are correct - file_select only has meaning for copy_from promises. Actually, more accurately it works for any promises which support depth_search. It turns out that edit_line in *not* compatible with depth_search, you will get these errors if you try: !! Recursive depth_searc

Cfengine Help: Re: Edit selected files

2010-07-26 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17786#msg-17786 Michael, I noticed your feature request and I think it would address my requirement also. It is interesting that, in your case, the file_select does cause

Cfengine Help: Re: Edit selected files

2010-07-22 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17747,17780#msg-17780 Beto, it's not the issue with splitstring, it's variables expansion limitation. The Cfengine only runs each promise 3 times, so the evaluation

Cfengine Help: Re: Edit selected files

2010-07-22 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17776#msg-17776 Seva, Thanks for your response. I already reported a bug for the file_select issue (000190) and I'm trying to use the find command with splitstring as a

Cfengine Help: Re: Edit selected files

2010-07-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17747,17773#msg-17773 Beto, I suggest you to file the bug report about file_select being ignored while is being used together with edit_line. The initial approach is

Cfengine Help: Re: Edit selected files

2010-07-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17772#msg-17772 Hey folks, Having no success whatsoever with the previous approaches in this thread I tried using a find command to select the "dot" files for editing. S

Cfengine Help: Re: Edit selected files

2010-07-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17759#msg-17759 Hi Seva, Unfortunately your suggestion produces the exact result, including all the error/warning messages, I described in my original post. As I stated

Cfengine Help: Re: Edit selected files

2010-07-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17747,17758#msg-17758 Beto, If you don't need to dive into subdirs, it can be much simpler. You need to change your files promise as follows: files: "$(Home

Cfengine Help: Re: Edit selected files

2010-07-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,17747,17757#msg-17757 So the problem would be cfengine displays too many warning messages or there is a bug in file_types as you really specified file_types => { "plain" };

Cfengine Help: Re: Edit selected files

2010-07-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17756#msg-17756 No matter how I code the edit_line promise and the file_select, and I have tried every variation I can think of, one thing is constant: the file_select ap

Cfengine Help: Re: Edit selected files

2010-07-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17747,17755#msg-17755 Seva, Your suggested change doesn't work either and only produces the following for every home directory without changing any files (I believe you meant t

Cfengine Help: Re: Edit selected files

2010-07-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit selected files Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17747,17754#msg-17754 Beto, your approach to file select looks bit strange. It should be like follows: files: any:: "$(HomeDir[$(HomeUsr)][5])"