bug-cfengine
[Top][All Lists]
Advanced

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

Variables not expanding when importing editfiles filename


From: Michael Richard
Subject: Variables not expanding when importing editfiles filename
Date: Thu, 28 Apr 2005 05:41:18 -0400
User-agent: Internet Messaging Program (IMP) 3.2.5

Hi,

I just started using cfengine last week and only had a quick look at the source
code this afternoon so please correct me if I'm doing something wrong.

I'm trying to compile a kernel on a Gentoo box using cfengine.  The file
responsible for compilation is kernel.conf.  It uses information (import
variables) from hardware.conf and version.conf.  A known fact is that running
kernel.conf will parse that file first and then import hardware.conf and
version.conf files.  So, if I set the variable kernel_major_version = ( 2.6 )
on version.conf and then use that variable on kernel.conf, it will be entered
in a table as $(kernel_major_version) and later replaced by the value 2.6.

Now, the problem is that if I try to use that variable in editfiles: {
$(kernel_major_version) ... }, the variable is NOT expanded as in any other
context.

I attached to that email the version.conf and kernel.conf files as well as a
suggested patch (do.c.patch).

Michael

--
Michael Richard
Administrateur de Systemes

CESART

Tel: (514) 288-4333
Fax: (514) 288-6980
Web: http://www.cesart.com

Attachment: kernel.conf
Description: Binary data

Attachment: version.conf
Description: Binary data

Attachment: do.c.patch
Description: Binary data


reply via email to

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