Forum: CFEngine Help Subject: Re: About "new" templates correct usage or limitations Author: th Link to topic: https://cfengine.com/forum/read.php?3,26723,26799#msg-26799
neilhwatson Wrote: > 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. hmm, an typical example, from Diego Zamboni book edited only a portion of the sshd_config file for instance. Was it just for the example ? Besides, how do you "fill" the file. You don't manually define a 450 entry array, 445 of which would be identical to the factory ones ? > > 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. You're right, you've got an argument ;-) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine