Re: Bug when copying a file and changing perms

2011-02-02 Thread Jean-Noël Rivasseau
ss : >>> >>> We've not seen or heard of anything like this from anyone else, but >>> we'll look into it. No code has changed here for quite a while. Please >>> tell us what OS you are running this on. There is always the possibility >>> of

Bug when copying a file and changing perms

2011-02-01 Thread Jean-Noël Rivasseau
Hello, I just upgraded to 3.1.4 (from 3.0.5) and am facing a critical bug that breaks all our code. Basically the following promise: files: "/srv/${global.INTERNAL_REVERSED_DOMAIN}/hudson/plugins/text-finder.hpi" copy_from => fastCopyFromRemote("${global.OVERMIND_HOST}", "${globa

"useshell" broken in cfengine-3.0.5_p1 ?

2010-11-02 Thread Jean-Noël Rivasseau
Hello, The following (which worked perfectly under 3.0.3) no longer works after an update to 3.0.5_p1: body common control { bundlesequence => {"setupPhase"}; } bundle agent setupPhase { vars: "my_result" string => execresult("/bin/echo dada | grep da", "useshell"); co

Unable to delete a directory

2010-10-25 Thread Jean-Noël Rivasseau
Hello, I want to delete a directory and all its content, I am running cfengine 3.0.3 and the exact example of the manual does *not* work: bundle agent cleanup { files: # This will not delete the parent "/home/mark/tmp/testcopy" delete => tidyfiles,

Reusing an execresult function

2010-04-08 Thread Jean-Noël Rivasseau
vars: foo string => execresult("verylongandcomplexcommandhere myArgument"); and I'd like to avoid repeating this code all the time. Any options to do that? -- Jean-Noël Rivasseau ___ Help-cfengine mailing list Help-cfengine@cfeng

Re: Flexibility in exclude_dirs

2010-02-01 Thread Jean-Noël Rivasseau
... > > Jean-Noel > > > On Mon, Feb 1, 2010 at 4:00 PM, Nakarin Phooripoom < > mynameisje...@gmail.com> wrote: > >> Maybe this is what you want. >> >> body depth_search recurse(depth) >> { >> depth => "$(depth)"; >> exc

Flexibility in exclude_dirs

2010-02-01 Thread Jean-Noël Rivasseau
Hi It seems to me exclude_dirs is not flexible enough, or I dont know how to use it properly. Say I have a base directory I want to copy recursively, base/. Inside base/ there is a data subfolder, and inside data cache/. I dont want to copy the cache directory base/data/cache; however I do want

Is it possible to undefine an already class in cf-engine?

2009-12-18 Thread Jean-Noël Rivasseau
Pretty much is in the topic. I am looking to do that within a promise, not with external stuff like the -N command line switch or the use of modules. Can I undefine a class in a classes promise for instance? Jean-Noel ___ Help-cfengine mailing list Help

Re: What means tidy in dirlinks on the delete body?

2009-12-18 Thread Jean-Noël Rivasseau
Anyone? On Thu, Dec 17, 2009 at 3:57 PM, Jean-Noël Rivasseau wrote: > Hello, there are three options for dirlinks: delete, keep and tidy. What > means tidy? This is not explained in the manual; please update the manual > accordingly. > > -- > J

What means tidy in dirlinks on the delete body?

2009-12-17 Thread Jean-Noël Rivasseau
Hello, there are three options for dirlinks: delete, keep and tidy. What means tidy? This is not explained in the manual; please update the manual accordingly. -- Jean-Noël Rivasseau ___ Help-cfengine mailing list Help-cfengine@cfengine.org https

state/cf_lock.db file?

2009-12-15 Thread Jean-Noël Rivasseau
Hi, in 3.0.2 this file was present in the cfengine direct folder as cfengine_lock_db, but it seems to have moved to state/cf_lock.db in SVN trunk. I don't know exactly the purposes of that file; I know only that it somehow prevents cf-execd to start if the last cf-execd instance was started less

Re: Bug in ${const.dollar}( ... )

2009-12-04 Thread Jean-Noël Rivasseau
Hi, yes this was only an example. The point was to demonstrate the cf-engine bug, I know that the example I wrote is stupid. Shall I report it to the bug mailing list (I think yes)? 2009/12/4 > You might try some negative testing on your shell command before you > integrate it with CF. I don't

Inserting lines in a file, at different times

2009-12-02 Thread Jean-Noël Rivasseau
Hi, This is actually one of the first thing I tried to do with cf-engine, never managed to do "correctly". Now I have much more cf-engine experience, understands better how the software is supposed to work, but I am still stuck on this one. Basically this code explains what I want to do: bundle

Re: Bug in ${const.dollar}( ... )

2009-12-01 Thread Jean-Noël Rivasseau
Hmm, can someone reply about that? Jean-Noel On Fri, Nov 27, 2009 at 10:48 AM, Jean-Noël Rivasseau wrote: > Hello, > > I wanted to use the Bash syntax $(mycommand) to launch a subshell in a > returnszero promise. So I coded it as: > > "MyClass" expression => r