I am surprised there is no viable solution to this seemingly basic problem... I maintain a comprehensive set of Puppet modules for our internal software and while it hasn't been an issue yet, having two modules attempt to install the same package (ie. openssh-clients on RHEL) is certainly not out of the question. For my own maintained modules, this isn't a problem, but if I incorporate a third-party module that does the same, there's no guarantee that one of us won't have to change.
I have started using ensure_resource() but notice that with a Package resource that "ensure => installed" and "ensure => present" are treated as two distinct instantiations of the Package resource, even if they're treated as equivalent in Puppet. On Fri, Mar 28, 2014 at 10:18 AM, Felix Frank < [email protected]> wrote: > Whoo, the triumphant return of a thread from over two years ago ^^ > > Still, this has come up on the development list again, too, recently. > > There has not yet been significat progress and we are still stuck with > the workarounds from the olden days. You can try with the > ensure_resource() function (in stdlib?). > > My gut says that there won't be a superior alternative very soon, seeing > as there is not even an armature yet (that I know of, but I don't > monitor those). > Still, this is a known issue that is on people's minds, and I'm > confident that it will be tackled once the current development cycle has > settled. > > HTH, > Felix > > On 03/27/2014 09:24 AM, och ach wrote: > > same problem here. just find that razor module has static def of package > > curl. > > what is the best practice? > > > > for now i have deleted the definition from module and included my > > virtual packages definitions but would love to solve it not dirty fix it > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/dOCIZ8-Gfgw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/533584AC.7000503%40alumni.tu-berlin.de > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANwmCdaubpRK_VzCvZjfxaNZetHurxG%2B88rmG1UF9YGYh7M7Og%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
