Allow module to take-over entire directory#7
Allow module to take-over entire directory#7erik-smit wants to merge 11 commits intoexample42:masterfrom
Conversation
… these directories defeats the purpose of auto-cleanup of vhosts.
|
Any comments? |
There was a problem hiding this comment.
Of the whole commit, this is what I would take... the rest seems really an overwhelming effort in the long term
|
Uhm I though to have already answered to this, but it was probably a similar topic... anyway I don't think it's manageable in the long term the (optional) management of the default configurations for the main distros. |
|
Are your concerns mainly with:
|
|
Actually for all the 3 points, mostly the first and the third one. |
Also, providing a default configuration that follows the intentions of the software developer and/or distribution is something I see in the job-description of a puppet module. In my view: service-module (puppet-apache) - provides a consistent baseline for the service. For me, the benefits are:
This ended up a bit more wordy than intended. I hope the above is understandable and not too erratic. |
|
I'm seriously thinking about it, but I'm still not sold... :-) I agree that this is stuff for a main module and not a site specific one, but since it's so easy to reproduce the behaviour setting a source_dir to a custom place and rsyncing there whatever default content you want, the extra value is not huge. Also if we consider all the cases that may drive to a default base directory different from the vanilla one (for example after the installation of packages that place files in /etc/apache2) , we can have a base set of files that have still to be maintained somehow and, if applied, could remove any eventual additional file provided by other packages. I wonder if we can achieve the same result setting a parameter that triggers an unattended dpkg-autoconfigure, for example... it might do the same (on Debian derivatives) without the need to manage all the files in the module itself. What do you think about this alternative? Could it work? |
|
For reference: http://wiki.apache.org/httpd/DistrosDefaultLayout
I disagree it's easy to reproduce.
While typing this, maybe it would be acceptable to create a /etc/puppet/modules/baseconfig module? Not an ideal solution, but I can't think of anything better atm.
Like a RPM package for an apache module that, on Redhat, puts the LoadModule configuration in /etc/apache2/conf.d? I agree this is a relevant issue. Maybe we could say: When using $manage_baseconfig, everything inside /etc/apache2 is considered runtime configuration, and must be provided by puppet.
I thought about this before making this patch, but for me this has the following drawbacks/effects:
|
|
I definitively like the idea of a baseconfig module.
If you want we can start the work together. |
|
Good, we "just" need to fill it up ... |
I sometimes run into problems with unmanaged resources, either by
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.