help-cfengine
[Top][All Lists]
Advanced

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

Re: How to define variables using a plugin


From: Mark . Burgess
Subject: Re: How to define variables using a plugin
Date: Tue, 31 Jul 2001 13:10:07 +0200 (MET DST)

On 31 Jul, Adrian Phillips wrote:
>>>>>> "Adrian" == Adrian Phillips <a.phillips@dnmi.no> writes:
> 
>     Adrian> Good day,
> 
>     Adrian> I'm trying to define variables using a shell script as a
>     Adrian> plugin but the variables are not being used in actions
>     Adrian> later in the actionsequence. Is this possible ?
> 
>     Adrian> A simple example :-
> 
>     Adrian> control:
> 
>     Adrian>         domain = ( oslo.dnmi.no )
> 
>     Adrian>         master_server = ( freeze )
> 
> Hmm, interesting, adding :-
> 
>         kernel_dir = ( "" )
> 
> works although gives :-
> 
>     Macro Collision!
>     cfengine:pcedb86::19: Warning: Redefinition of macro 
> kernel_dir=/var/lib/cfengine/linux/kernel/up
>     .
>     .
>     .
>     Checking copy from freeze: to /usr/src
> 
> so it knows about the variable but doesn't want to replace it.
> 
> Hmm, I'll have a look at the source.
> 
> Sincerely,
> 
> Adrian Phillips
> 


I think you have to be using 1.6.3 or later for this to work.

M


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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