On Thu, 13 Feb 2014 17:01:47 +0100 "Stefan G. Weichinger" <li...@xunil.at> wrote:
> I happily use git for local repositories to track configs in /etc or > for example, /root/bin or /usr/local/bin (scripts ..) > > There is also etckeeper, yes, useful as well. > > But I would like to have some kind of meta-repo for all the > gentoo-servers I am responsible for ... some remote repo to pull from. > > Most files in /etc might be rather identical so it would make sense to > only track the individual changes (saves space and bandwidth) > > Maybe it would be possible to use git-branches for each server? Yes. > Does anyone of you already use something like that? No idea. > What would be a proper and clever way to do that? Just do it. > How do you guys manage this? Do as you have described, make the most general thing (a master branch) and the most specific things (customer branches); when you have that, and you daily (or so) sync the customers with the customer branches you can proceed with merging (git merge, not an actual join) the customer branches with the master branch. If you come up with a different branching model, you'll still be able to do that; given it is completely on the server, anything between the most general and the most specific things is entirely in your control. -- With kind regards, Tom Wijsman (TomWij) Gentoo Developer E-mail address : tom...@gentoo.org GPG Public Key : 6D34E57D GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D