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

Making the source parameter authoritative for the gem package provider

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.1.0
    • None
    • Platform Core
    • 0
    • Platform Core 2017-08-08
    • Bug Fix
    • Fix a bug wherein arguments were passed to `gem` in the wrong order
    • No Action
    • Covered by spec tests

    Description

      The documentation suggests that I can add a custom source to use for where rubygems should be installed from when I specify the source paramater as part of my package resource declaration.
      This however does not work because the source parameter is positionally depended.
      The most reliable way I could get it to work was to manually specify all the parameters as follows:

      package { 'random-client':
        ensure => installed,
        provider => 'gem',
        install_options => ['--clear-sources' ,{'--source' => 'http://example.net:2000'}],
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ggeldenhuis-old Gerhardus Geldenhuis
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support