Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3323

yum provider should be able to install from remote URLs

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.4.0
    • Types and Providers
    • None
    • Any platform using the yum provider

    • New Feature
    • As of Puppet 5.4.0, the :source attribute to a package resource using the yum provider can be an http or file url to a remote/local file, and the provider will use yum's built in support for installing the file directly with dependency management.
    • No Action

    Description

      This should result in the remote package being installed, with all dependencies:

      package{'activemq':
        source => 'http://www.netconsonance.com/downloads/activemq-5.9.1-2.el6.noarch.rpm',
        ensure => present,
      }
      

      What actually happens is that the latest version available in the configured yum repos is installed.

      Explicitly specifying provider => 'rpm' downloads and installs the remote package, but will fail if all dependencies are not already installed.

      yum supports this, ie. "yum install http://www.netconsonance.com/downloads/activemq-5.9.1-2.el6.noarch.rpm" will download the package and install with all dependencies, so I think the puppet yum provider should support this too.

      Attachments

        1. yum.rb
          10 kB
          Geoff Williams

        Issue Links

          Activity

            People

              melissa Melissa Stone
              robinbowes Robin Bowes
              Eric Thompson Eric Thompson
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support