To answer your original question: no, there is no way to override the ruby code without modifying the ruby code.
On Thu, Oct 18, 2018 at 7:41 PM Sergei Gerasenko <[email protected]> wrote: > > Yeah, I know we're old. I'm asking in general though (imagining it would > be happening with the current version for example?), what would be an > elegant way to fix this? > > On Wednesday, October 17, 2018 at 5:22:05 AM UTC-5, Ben Ford wrote: > >> Hi Sergei! >> >> Puppet 3.x is quite old, and in fact has been end-of-lifed for 655 days >> as of today! (December 31, 2016). It is no longer receiving security or bug >> fixes. If you upgrade to a modern version, you'll see that there's are new >> pip and pip3 providers that use the appropriate commands. >> https://github.com/puppetlabs/puppet/blob/1707f2ca46867651095e01379bd01dab08076b8b/lib/puppet/provider/package/pip.rb#L55-L65 >> >> >> On Wed, Oct 17, 2018 at 11:18 AM Sergei Gerasenko <[email protected]> >> wrote: >> > Hello, >>> >>> I'm running puppet 3.5.1 and the pip package provider has this bit: >>> >>> def self.cmd >>> case Facter.value(:osfamily) >>> when "RedHat" >>> "pip-python" >>> else >>> "pip" >>> end >>> end >>> >>> As you can see, when the OS is RedHat, it wants to use the pip-python >>> command, but it's not available for latest versions of Redhat/CentOS. Is >>> there an easy way to override the command for that provider without >>> altering the puppet source code? >>> >>> -- >>> 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/c15b51cd-23fa-4406-ad92-ff3e2b63c839%40googlegroups.com >>> <https://groups.google.com/d/msgid/puppet-users/c15b51cd-23fa-4406-ad92-ff3e2b63c839%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> 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/6351ceeb-5495-4348-bc89-2a74da54ff14%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/6351ceeb-5495-4348-bc89-2a74da54ff14%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Cheers, David https://twitter.com/dev_el_ops -- 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/CALF7fHb3XGJvz1L%2BEP7sE%3DifvbgST0kqufZ1%2BRMfsF5vuWwhgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
