On 06/06/2012 06:39 PM, Ohad Levy wrote:
[...]

So what do you say? A bad idea? A brilliant idea? Everyone's doing it and nobody told me?
etckeeper

Thanks for that one (goes to Oron too). On Fedora 14 (running on a guinea pig virtual machine) it was just yum install etckeeper, etckeeper init, etckeeper commit "initial commit", and the whole thing was set up. And I dare to believe that if it's part of a Fedora distribution, there's probably nothing fundamentally wrong with running git as root or maintaining version control on configuration files. Personal experiences reported here were valuable too, of course. Thank you.

A nice thing about etckeeper is that it makes commits on yum calls, so there's a clear before-after view.

What I liked less, is that the repository is under /etc (not surprising, and still), so configuration files outside that directory can't be tracked. /var/lib/tftpboot/pxelinux.cfg/, for example. I suppose I'll init the git repository on / instead, and fix the .gitignore file accordingly. With some luck, this will have no effect, since git will respond exactly the same (won't find a repository in /etc, climbs up to /). Fingers crossed.

   Eli


-- 
Web: http://www.billauer.co.il




_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to