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 _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine