[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: Ability to parse files with a custom parser
From: |
Mark Burgess |
Subject: |
Re: Feature request: Ability to parse files with a custom parser |
Date: |
Thu, 24 Feb 2005 13:47:45 +0100 |
On Tue, 2005-02-22 at 17:05 +0100, Knut Auvor Grythe wrote:
> On Wed, Feb 16, 2005 at 01:24:40PM +0100, Knut Auvor Grythe wrote:
> > What we would like to see, is an option in copy for using a custom parser,
> > like so:
> >
> > copy:
> > all::
> > /path/to/sshd_config.m4
> > dest=/etc/ssh/sshd_config
> > parsecmd=/local/admin/bin/m4wrap
>
> If we implemented this and submitted a patch, would it be accepted? We
> would really like this feature, but we do not wish to become dependent
> on local patches.
>
I think, on having read the messages more carefully, that this would be
best implemented as a method that you pass different arguments. That way
you can apply the same code piece that you origianlly sent to multiple
tasks.
methods:
ExpandFile(sshd_config)
ExpandFile(ssh_config)
# etc etc
See:http://www.cfengine.org/confdir/methods.html
Mark