Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,26723,26782#msg-26782
But let's say you don't want/need to iterate sections but only to verbatim copy
the whole file with some variables expansions. How would you do that ?
Very simple, unless I misunderstand the question. For example:
"/etc/mail/sendmail.cf"
edit_line =>
expand_template("$(glb.templates)/sendmail.cf.template"),
edit_defaults => empty,
classes => if_repaired("restart_sendmail"),
create => "true";
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine