Hello Tobias,

I am planning to use git to manage the system configuration files too, any 
tutorials or information that you can share?

On Sunday, January 10, 2010 at 4:30:04 PM UTC-6, Tobias G. Pfeiffer wrote:
>
> Hi!
>
> I want to use git to manage the system configuration (/etc/...) for a 
> number of Linux servers in my network. Right now, on every machine, 
> /etc/ is a git repository where I locally commit after every change to 
> config files, software upgrades etc.
>
> Now I thought that it would be great to have a central git repository 
> that stores the configuration that is the same for all machines and I 
> could do
>  server-1 $ (edit config)
>  server-1 $ git commit
>  server-1 $ git push
> and then on all other servers:
>  server-n $ git pull
> to get the changes.
>
> However, there is a number of problems with that:
>  * Each machine has of course some files whose content is local to that 
> machine (e.g. /etc/hostname).
>  * Each machine has folders that are beyond the "core config" (e.g. 
> /etc/apache2 for a web server and /etc/postgresql for a database 
> server).
> I also want these local files and folders to be under revision control 
> using git, but I don't know what is a/the best possible way to do it, 
> i.e. have the "general part" and the "local part", all mixed up in one 
> directory.
>
> One way to go, I guess, would be to have
>   /etc -- general part
>   /etc_local -- local part
> and just symlink everything that's not part of the general config from 
> /etc_local to /etc. But maybe someone else has a better idea?
>
> Thanks for your help,
> Tobias
>
> -- 
> design the future... now!
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to