help-cfengine
[Top][All Lists]
Advanced

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

Re: macro expansion in editfiles file path


From: Mark . Burgess
Subject: Re: macro expansion in editfiles file path
Date: Fri, 9 Jan 2004 11:46:51 +0100 (MET)

You need to specify that you wnat to create the file if it does not exist.
Mark


On 13 Nov, Wheeler, John wrote:
> I seem to be having trouble using a macro in a filename for editfiles.
>  
> control:
>  
> actionsequene = ( editfiles )
> blah = ( ifcfg-eth0 )
>  
> editfiles:
>             { /etc/sysconfig/network-scripts/${blah} 
>  
>                         do stuff to the file
>  
>             }
>  
>  
> always complains that etc/sysconfig/network-scripts/${blah} doesn't
> exist... which of course it doesn't.
>  
> shouldn't this work?
>  
>  
>  



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





reply via email to

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