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?
8
Upvotes
View all comments
Show parent comment
2
u/fongaboo Jan 27 '26
OK thanks for guiding me in this direction. Ansible is something I am already using but only for specific purposes. But I am starting a job where it is front and center. So I should get with the program regarding that.
Do you have these three directories within something like /usr/local/src/configs on a master/control machine? And then is the configs directory one big Git repo? Or is git completely out of the picture?