Forum: CFEngine Help
Subject: Re: filecopy, transform with grep.
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,22985,23014#msg-23014

To answer your question: 

At a high level the difference between what you are trying to do and the 
example in the guide is that you want cfengine to be the program that edits 
/path/to/resultfile.  You intend for it not only to read in data but also to 
write it.  In the postfix example, Cfengine is trusting that 
/usr/sbin/postalias is going to do all of the editing (read in 
/etc/postfix/alias and update /etc/postfix/alias.cdb).

So because cfengine already has a good mechanism for editing files that is 
entirely within its control (although yes, it is "lengthy"!), changing the 
transformer promise to also have the ability to edit files may not make a lot 
of sense.

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to