On Friday, May 5, 2017 at 10:28:38 AM UTC-6, Zero point minus two wrote: > > What are best practices for having a repo that feeds into system > configuration? > > The "etckeeper" program available on some Linux distributions places the git repository in the system configuration directory. In that case, it is not feeding the system configuration, but recording the actual state of the system configuration.
I don't see the use case for having a repo which feeds system configuration and which wouldn't be better served by a tool specifically designed for system configuration, like puppet, chef, or ansible. Have you considered those tools for system configuration, since they are specifically designed to configure systems? Mark Waite > The problem is that Git repos are not stable; ie if you mess it up you > would mess up your system if the system files are symlinked to it. > > So you either have to install the files into their final destination or > symlink them from another staging directory which seems a bit pointless. > > It's attractive to just symlink it into the repo directly but just not > very reliable. > > I guess I should let go of the idea of using symlinks even though it is > very convenient. > > It means actual files are all together if you want. > > But having files in a intermediate staging directory creates the problem > of having to push files back into the repo after you edit them. > > Or, you always edit in the repo, but this is weird when you have a staging > directory that is suitable for it. > > Therefore I guess the best choice would be to use direct installation from > the repo into final destinations directly. > > Otherwise you would definitely be tempted to edit them outside of the repo. > > What do you do in such a circumstance? > -- 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 git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.