example42/puppet-apache — pull request #7 by erik-smit (2012-11-28 16:36:40+00:00)
Title: Allow module to take-over entire directory

I sometimes run into problems with unmanaged resources, either by

- configfiles supplied by packages, but not used by me
- configfiles of previously managed resources.

So I want to try to make all my used modules purge everything unmanaged in the configdir.

In my head, providing a copy of the distro configs makes sense.

One thing I am not sure about:

If a feature like this is accepted by you, would it make sense to use the source_dir mechanics for this, or would it make sense to invent a new variable for this particular purpose. Like $manage_configdir, which could be implemented by all applicable modules.

For instance, I've done something similiar with Bacula: https://github.com/rharrison10/rharrison-bacula/pull/3/files

But there it is easier, because 100% of the configfiles are already managed by bacula.