On Tue, May 25, 2010 at 7:45 AM, Jonathan Billings <[email protected]> wrote: > On Mon, May 24, 2010 at 09:36:22PM -0700, Atom Powers wrote: >> I haven't tried puppet in over a year, but when I was evaluating it I >> could never get puppet to build a template from more than one piece. >> For example, if I wanted to add a line to crontab for each of several >> different classes. > > When it comes to editing files in-place, you'll get different answers > from people depending on what they use. > > I used editfiles in cfengine2, which I thought were quite powerful. > Some people think that editing files in-place is a horrible idea, > mostly because there are always corner cases where data are lost. > They'll say it's better to just push down whole files. I tend to > agree now, after being bit by the concequences of a poor edit.
It took me a long time to get this right, too many ways for it to go wrong. Now I copy the template to a working path, let all my policies edit it, and finally copy it to it's location once all the edits are done and trigger a service restart if it is different. -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- _______________________________________________ Discuss mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
