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

Making the source parameter authoritative for the gem package provider

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.1.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Platform Core
    • Story Points:
      0
    • Sprint:
      Platform Core 2017-08-08
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix a bug wherein arguments were passed to `gem` in the wrong order
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      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

              jsd-sla-details-panel

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: