Git Product home page Git Product logo

Comments (4)

dgolja avatar dgolja commented on July 29, 2024

Hey Chris,

thank you for the commit. To be honest I am not a big fun of adding custom facts, if they are not really necessary.

In a big puppet installation more custom facts you have, more time it takes the puppet agent to start/finish. Hopefully cfacter will fix that, but is still few months away.

Usually if I really need some custom facts I add them per environment in the common module. Also if I install gpg keys on a node, I know that I need them there, and if so I include the gnupg class.

What are your thoughts on that ?

from golja-gnupg.

edestecd avatar edestecd commented on July 29, 2024

RVM uses the which command to determine if gpg is installed. If it is, it looks for a gpg key and fails if one is not present.
https://github.com/wayneeseguin/rvm/blob/480fbc35211940dc2d5ac09ce630e1a161090f70/binscripts/rvm-installer#L386
We are simply trying to replicate this in the RVM module and only add a key if needed to avoid failure.

The RVM module should not install gnupg if it is not present. That is what this module is for.
So we need to determine if in fact gpg is present. We are currently using this exec, which I find sloppy.
https://github.com/maestrodev/puppet-rvm/blob/master/manifests/system.pp#L38
I think this is a good use of a fact and I would much rather use this modules gnupg_key type.

I suppose we could add the fact to the RVM module, but I feel it makes more sense for it to go in this module, as it is more related to gpg.

More info here:
voxpupuli/puppet-rvm#86

from golja-gnupg.

dgolja avatar dgolja commented on July 29, 2024

HaHa I like your obsession to make the code less sloppy 👍

I guess if https://github.com/carlossg want to make his module depending on mine we can add this new feature.

from golja-gnupg.

dgolja avatar dgolja commented on July 29, 2024

done ... sorry for the delay and thank you again for the PR.

from golja-gnupg.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.