-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shouldn't use Git submodule for Augeas lens #11
Comments
That was actually my fault, forgot to run the command to populate the submodule before I built the pgpool package for the forge. I'll correct that. |
As for the maintaining the lens with the module, I have it separate so that it would be more useful to someone who want to use it outside of puppet. Since I'm not implementing providers, it doesn't really make sense to roll it into a new module. Ideally it could be something to just provide with augeas so that it would just be available and we wouldn't have to be providing it as part of this module. It's one of those nice to have things if I had time to submit it. |
I'd argue that the We can work around the R10k problem by using a corrected Forge release (thanks for that, by the way!), but that doesn't really solve it. So I suggest adding a warning regarding R10k and the submodule contained to the README, as a courtesy to those who want (or have) to deploy this module from Github directly instead of the Forge. As for pushing the lens upstream to the Augeas project: I think this is a worthwhile idea but even if you did that today it would probably take months until it is included in an upcoming Augeas release, and it would never be available for today's supported distros (precise, trusty, wheezy, jessie, Centos 6, 7, ...), anyways. At least not without backported Augeas packages. |
We ran into this today. It seems R10k does not support deploying Git submodules (https://tickets.puppetlabs.com/browse/RK-30) so the
pgpool.aug
Augeas is missing after the module is installed.This also seems to be a problem for the release on the Forge. The latest release, when downloaded as a tarball, doesn't contain the
pgpool.aug
Augeas lens but only an empty directory namedaugeas-pgpool
:Obviously this is suboptimal :)
I suggest either maintaining the Augeas lens directly within this module, or releasing a proper module containing only the lens and listing that module as a dependency, like you do with camptocamp/augeas, herculesteam/augeasproviders_core, herculesteam/augeasproviders_postgresql and so on.
The latter approach is described in https://docs.puppetlabs.com/guides/plugins_in_modules.html, but I would favour the former, letting the Augeas lens live within the pgpool module, and making use of Puppet's plugin sync. The path would look like this:
Thoughts?
The text was updated successfully, but these errors were encountered: