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

install_options confused on the way to `gem`

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.7.3
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      OS X 10.10.2

    • Template:

      Description

      When an `install_options` using the `gem` version specifier with `~>` is used it seems to be passed down to `gem` in a way that causes an error (stringified array?). The command line that's reported to be causing the error when pasted into the command line, works.

      $ sudo puppet --version
      3.7.3
       
      $ sudo puppet apply
        package { 'puppet':
          ensure   => present,
          provider => gem,
          install_options => {'--version' => '~> 3.0'},
        }
      ^D
      Notice: Compiled catalog for host in environment production in 2.41 seconds
      Error: Execution of '/usr/local/rvm/rubies/ruby-2.0.0-p643/bin/gem install --no-rdoc --no-ri puppet --version="~> 3.0"' returned 1: ERROR:  While executing gem ... (Gem::Requirement::BadRequirementError)
          Illformed requirement ["\"~> 3.0\""]
      Error: /Stage[main]/Main/Package[puppet]/ensure: change from absent to present failed: Execution of '/usr/local/rvm/rubies/ruby-2.0.0-p643/bin/gem install --no-rdoc --no-ri puppet --version="~> 3.0"' returned 1: ERROR:  While executing gem ... (Gem::Requirement::BadRequirementError)
          Illformed requirement ["\"~> 3.0\""]
      Notice: Finished catalog run in 0.97 seconds
       
      $ sudo /usr/local/rvm/rubies/ruby-2.0.0-p643/bin/gem install --no-rdoc --no-ri puppet --version="~> 3.0"
      Fetching: puppet-3.7.5.gem (100%)
      Successfully installed puppet-3.7.5
      1 gem installed
       
      $
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  paulmakepeace Paul Makepeace
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: