* [gentoo-user] using git to track (gentoo) server configs ?
@ 2014-02-13 16:01 Stefan G. Weichinger
2014-03-20 15:45 ` Tom Wijsman
2014-03-25 20:40 ` yac
0 siblings, 2 replies; 3+ messages in thread
From: Stefan G. Weichinger @ 2014-02-13 16:01 UTC (permalink / raw
To: gentoo-user
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?
Does anyone of you already use something like that?
What would be a proper and clever way to do that?
Yes, I know, there is puppet and stuff ... but as far as I see this is
overkill for my needs.
I'd like to maintain some good and basic /etc, maybe plus
/var/lib/portage/world and /root/.alias (etc etc ..) to be able to
deploy a good and nice standardized gentoo server. Then adjust config at
the customer (network, fstab, ...) and commit this to a central repo (on
my main server at my office or so).
Yes, rsyncing that stuff also works in a way ... but ... versioning is
better.
How do you guys manage this?
Looking forward to your good ideas ;-)
Regards, Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] using git to track (gentoo) server configs ?
2014-02-13 16:01 [gentoo-user] using git to track (gentoo) server configs ? Stefan G. Weichinger
@ 2014-03-20 15:45 ` Tom Wijsman
2014-03-25 20:40 ` yac
1 sibling, 0 replies; 3+ messages in thread
From: Tom Wijsman @ 2014-03-20 15:45 UTC (permalink / raw
To: lists; +Cc: gentoo-user
On Thu, 13 Feb 2014 17:01:47 +0100
"Stefan G. Weichinger" <lists@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 : TomWij@gentoo.org
GPG Public Key : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] using git to track (gentoo) server configs ?
2014-02-13 16:01 [gentoo-user] using git to track (gentoo) server configs ? Stefan G. Weichinger
2014-03-20 15:45 ` Tom Wijsman
@ 2014-03-25 20:40 ` yac
1 sibling, 0 replies; 3+ messages in thread
From: yac @ 2014-03-25 20:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]
On Thu, 13 Feb 2014 17:01:47 +0100
"Stefan G. Weichinger" <lists@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?
> Does anyone of you already use something like that?
> What would be a proper and clever way to do that?
>
> Yes, I know, there is puppet and stuff ... but as far as I see this is
> overkill for my needs.
>
> I'd like to maintain some good and basic /etc, maybe plus
> /var/lib/portage/world and /root/.alias (etc etc ..) to be able to
> deploy a good and nice standardized gentoo server. Then adjust config
> at the customer (network, fstab, ...) and commit this to a central
> repo (on my main server at my office or so).
>
> Yes, rsyncing that stuff also works in a way ... but ... versioning is
> better.
>
> How do you guys manage this?
>
> Looking forward to your good ideas ;-)
>
> Regards, Stefan
>
You are probably looking for cfengine or puppet
---
Jan Matějka | Gentoo Developer
https://gentoo.org | Gentoo Linux
GPG: A33E F5BC A9F6 DAFD 2021 6FB6 3EBF D45B EEB6 CA8B
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-25 20:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 16:01 [gentoo-user] using git to track (gentoo) server configs ? Stefan G. Weichinger
2014-03-20 15:45 ` Tom Wijsman
2014-03-25 20:40 ` yac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox