Putting server configurations in version control via SSH

view story

http://serverfault.com – I have a bunch of *nix servers in production. I would like to put it's important configuration files in version control The basic idea I had was to Put a distributted version control system so that each system's configurations are saved on its own drive. The way configurations are changed are either through an editor or through an external source. Assuming that $EDITOR is used in shell, it would be possible to add an extra command upon saving the file (so the file is then added to git). This could be problematic as it is not always that a user would do vim /etc/my.cnf , it could be open (HowTos)