[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inline macros or plugin
From: |
Lyndon C. Lim |
Subject: |
Re: Inline macros or plugin |
Date: |
Mon, 23 Aug 2004 10:29:09 -0700 |
On Friday 20 August 2004 14:07, Mark wrote:
> I have a task that I want to call for a bunch of classes that always repeats
> the same configuration, except for one or two values.
> Something like:
>
> ....
> Copy:
> case1::
> somedir/case1/
> dest=/newdir/case1
>
> case2::
> somedir/case2/
> dest=/newdir/case2
>
> case3::
> somedir/case3/
> dest=/newdir/case3
> ....
>
> Etc. etc. The actual configuration is much longer, so I have to deal with a
> lot of redundancy and duplication...
I had exactly the same thought. My conclusion
is create an m4 version of my configuration files.
I will have a directory which the sources files are
written in m4. Using a Makefile, I pass my source
through m4 to generate the actual cfengine configuration
files. Then, I have targets to verify the syntax is
correct, prior to installation in /var/cfengine/inputs.
--
Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax)
Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Inline macros or plugin,
Lyndon C. Lim <=