Saturday, December 27, 2008

Configuration files: defaults or from scratch?

Up until recently I was a big fan of throwing away configuration files bundled with software such as apache, freeradius, etc., and write one from scratch to ensure i understood every single line.

My new approach is to leave configuration files at the defaults as much as possible. This makes it possible for other administrators to sit down and start editing the file and recognize the structure from other setups. It also makes it easier for package management systems to make diffs and indicate what has changed in new versions of the default configuration files when updating software (at least this is how Portage in Gentoo works).

A big disadvantage of this second approach is however, that it makes it difficult to get an overview of the configuration.

Which approach is best?

No comments:

Post a Comment