r/linuxadmin • u/fongaboo • Jan 27 '26
managing configs with git
I am starting to use git to manage my config files for multiple pkgs/applications across multiple machines.
Those of you that do this, how do you structure your repos?
My current workdir hierarchy looks like this:
/usr/local/src/
|
+-configs
|
+-global
+-hosts
|
+<server1>
+<server2>
(with one repo workdir per application within 'global' and '<serverX'> directories)
But should I do one repo per application with a branch per server?
9
Upvotes
View all comments
Show parent comment
2
u/ralfD- Jan 27 '26
With etckeeper - yes. One repo per server. All ansible conf is in one repo as well.