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
Suggest using the forge approved module for gpg #86
Comments
We may need to get a fact added to that module that indicates if gpg is installed. |
It's a bit tricky because I don't think gpg should be installed in this module. |
I agree about installing gpg. It should not be installed by this module, if not present already. However, I do think it is appropriate to add the key, if gpg is detected, to prevent rvm from failing. |
I also think it might be nice if managing the key was optional, and had a param to turn it off... |
I have requested facts for gnupg detection. |
Hey guys I am joining the party 👍 So yeah if you want to make your module dependent on mine and you think it will make it work better, I am happy to add the new facters. |
GPG Should, in fact, be installed by the "gnupg" module, and the keys should also be managed by the "gnupg" module. A module should do one thing and do it well. "This" module should not be trying to determine if gpg is installed and if so, managing the key. I would recommend just requiring the "gnupg" module and installing gpg on any platform that is supported by it. It is a GOOD THING :) EDIT: You may want to only require it if the OS is Linux, incase someone is using the RVM module on OSX or some other obscure OS... or enhance the gnupg module with knowledge on how to install gpg on any desired target platforms. |
I don't think this module should install gpg nor call the gnupg module to install it. It is not required by RVM and it should be defined at a host level, not here. |
On second thought, I agree with @carlossg. This module should document the use of the "gnupg" module to install the necessary keys. It should not be doing any GPG management itself. |
I agree that the RVM module should not install gpg and that the README should document the use of the gnupg module. I am torn on the key management, however. I could be OK with the RVM module managing it or not. I could see a separate class that manages the key optionally and the default is to not include the class or wrap it in a param. A good example of this is the elasticsearch module which offers to install java for you with the puppet labs module. It is off by default and you must install the java module yourself as it is not a dependency in the metadata.json. elasticsearch example: |
I have added an initial implementation in the gnupg branch |
Use the gnupg_installed fact in newer golja-gnupg modules Fix tests
merged |
I propose we swap the exec being used for gpg key management with a module.
This module would probably do the trick. It can handle the key import as well as installing gpg, if needed.
https://forge.puppetlabs.com/golja/gnupg
The text was updated successfully, but these errors were encountered: