bug-cfengine
[Top][All Lists]
Advanced

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

Re: repository doesn't like variables?


From: Marion Hakanson
Subject: Re: repository doesn't like variables?
Date: Fri, 28 Mar 2003 13:45:07 -0800

> Running cfengine 2.0.5:
> 
> The repository directive (in the control: section) doesn't like 
> variables.  The following throws a parsing error:
> 
>       workdir = ( /var/cfengine )
>       repository = ( $(workdir)/myrepository )
> 
> but this does not:
> 
>       repository = ( /var/cfengine/myrepository )
> 
> 
> The specific error message is the line number and "File repository must 
> be an absolute dirtecotry name".
> 
> This happening to anyone else?


Yep.  Actually, this behavior is an improvement.  It used to be that
it would just silently ignore such a setting, if I recall correctly.
Under 2.0.5pre2, the following works:

          cf_repository = ( "$(cf_workdir)/rep" )
          repository = ( "$(cf_repository)" )

I haven't yet tried this in 2.0.5.

Regards,

-- 
Marion Hakanson <address@hidden>
CSE Computing Facilities






reply via email to

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