The problem in a nutshell is that you install a set of applications (through yum or apt-get or whatever) and configure them. However you run into the problem of config propagation, versioning/history, rolling back to a known configuration, etc. I've seen a few sys admins roll their own solution, usually involving rsync and a lot of logging.
My solution was to use Hg to do all the heavy lifting, with a wrapper bash script that I knocked up very quickly that invokes Hg to version configuration files. It maintains knowledge about where the file came from by copying the file to be relative to the repository directory. For example if a user was to edit /etc/hosts the file will reside in the repository at $REPOS_HOME/etc/hosts
How it works is that you run
$ editconf <file>the script does the following.
- Resolves the absolute path of a file (using a realpath bash script that a friend knocked up)
- Checks if the file exists in the repository
- If the file doesn't exist the file is copied and added to the repository
- Drops through to the users editor (defaults to vim)
- Copies the file to the repository when the user exits the editor
- Attempts to commit the file
If the user is created for the first time (ommitting the initial check), the script is smart enough to add it first. Mistakes are fixed by leaving an empty commit message (most SCMs wont commit of course), and reverting the file.
Branches can be made, merged, and state can be pushed around various servers with very little effort.
I mentioned this approach to some people and they thought it was a nifty idea and asked me to share my scripts. They can be found on BitBucket under the nesupport SysTools project. They're licensed under the MPL, and since they were knocked up in a hurry patches/feedback are always welcome. Further instructions are found in the scripts themselves (if further action is required).
Further work could include the automated sharing of repository state (cron job) and synchronising what's in the repo with what's on the filesystem.
 The code was developed for a project I'm working on with somebody else who agreed to open source our sys admin scripts, of which editconf is a part.