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,26948#msg-26948
th Wrote: > Just to be sure : with promises such as edit_line > => set_variable_values (just as your book's > sshd_config example), the only way I can imagine > to, as you say, "produce" a local staging file > would be to copy the "master" file to "staging" > file. Am I right ? Well, I must detail : msvoboda in the link you provides (cfengine.com) uses indeed an insert_line: promises with a insert_type => "file" body attribute but I don't want that for all the reasons described earlier (insert_type => "file" would be slow because of duplicate checks on "large" files"). So while I agree I need 3 files, I guess I must generate the equivalent of msvoboda' s "/etc/sysctl.final" file by just copying (maybe with an ifvarclass expression reflecting that the "master" file has changed) the "master" (equivalent of msvoboda' s "/etc/sysctl.staging") file. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine