Forum: CFEngine Help Subject: Re: About "new" templates correct usage or limitations Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,26723,26795#msg-26795
th Wrote: ------------------------------------------------------- > 1. edit_line cannot install or repair the > whole file Using edit_line, one can promise the entire contents of a file. Indeed, this is best practice rather than promising only a portion of the file. See 'create' and 'edit_defaults' to create a file that does not exist and to empty an existing file to remove any and all cruft. > I want to be able to keep duplicate lines (two > white lines for instance), For what purpose? If the promiser file is managed by Cfengine there is little need for it to be readable. The source template file is where readability matters. I haven't seen anything mentioned here that cannot be done. I think you should step back and re-evaluate. I see a classic example of someone trying to use an advanced feature of software for the first time without much previous experience. Try a few small examples to get a better understanding. When asking questions here, try to show small, self contained, examples of what you are doing. Tell us what end results you desire as they are far more important than how you are trying to get there. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine