help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: AllowRedefinitionOf


From: Andrews, Martin
Subject: RE: AllowRedefinitionOf
Date: Fri, 28 Feb 2003 16:32:56 -0500

Do you define test in your update.conf? That gets run only as root and I
believe the definitions get carried over. Don't recall is this is a feature
or a bug.

Martin

> -----Original Message-----
> From: Luke A. Kanies [mailto:luke@madstop.com]
> Sent: Friday, February 28, 2003 3:49 PM
> To: help-cfengine@gnu.org
> Subject: AllowRedefinitionOf
> 
> 
> Hi all,
> 
> I've got a short cfengine script that behaves differently 
> when running as
> root vs. another user:
> 
> control:
> 
>    AllowRedefinitionOf = ( test )
> 
>    actionsequence = ( shellcommands )
> 
>    test = ( "THIS" )
>    test = ( "IS" )
> 
> shellcommands:
>    "/bin/echo [$$] ${test}"
> 
> When this runs as root, I get:
> 
> sycamore:tmp/cftest2:10: Warning: Redefinition of macro test=IS
> 
> but when running as a normal user, I don't get that error.
> 
> Is there something I'm doing wrong here, or is this a bug that's been
> fixed in 2.0.5 or something?  I feel kinda retarded, because 
> I know this
> is supposed to work, but every machine on my network is 
> generating output
> with this warning, and it's starting to get to me.
> 
> Thanks,
> Luke
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]