Cfengine Help: Re: Cfengine Help: Re: cfengine v3 equivalent of ->!

2010-07-28 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: cfengine v3 equivalent of ->! Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17806,17808#msg-17808 move_obstruction goes in the files: promise not the body part. http://www.cfengine.org/manuals/cf3-reference.h

Re: Cfengine Help: Re: cfengine v3 equivalent of ->!

2010-07-28 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
ah, yes, thanks. sorry, brain meltdown looking at this too long. - Original Message - From: Wes Hardin To: JIM AMANATIDIS (BLOOMBERG/ 731 LEXIN) Cc: help-cfengine@cfengine.org At: 7/28 11:13:43 move_obstructions doesn't belong in the link_from body, it's part of the parent promise. S

Re: Cfengine Help: Re: cfengine v3 equivalent of ->!

2010-07-28 Thread Wes Hardin
move_obstructions doesn't belong in the link_from body, it's part of the parent promise. See example from docs: files: "/tmp/testcopy" copy_from=> mycopy("/tmp/source"), move_obstructions => "true", depth_search => recurse("inf"); The example shows it paired with a copy_

Re: Cfengine Help: Re: cfengine v3 equivalent of ->!

2010-07-28 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
I tried that, got error: # cf-promises cf3:/var/cfengine/inputs/libs.cf:41,30: Constraint lvalue move_obstructions is not allowed in 'link_from' constraint body, near token 'true"' Here is the body: body link_from ln_s(x) { link_type => "symlink"; source => "$(x)"; move_obstructions =>

Re: Cfengine Help: Re: cfengine v3 equivalent of ->!

2010-07-28 Thread Wes Hardin
Maybe you need "move_obstructions" then? http://www.cfengine.org/manuals/cf3-reference.html#move_005fobstructions-in-files -- /* Wes Hardin */ UNIX System Administrator, IT Engineering Support Maxim Integrated Products: Innovation Delivered On 07/28/2010 09:52 AM, JIM AMANATIDIS, BLOOMBERG/ 731