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

Allow local of install of a gem on windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.3.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-10-14
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Makes it possible to use the gem provider on windows where the source is a local gem.

      Description

      Attempts to install a gem from a local source on windows using the package type fail because the provider eventually passes the path as a source argument:

      puppet

      package { 'diplomercy':
         ensure => '1.0.0',
         source => 'c:/diplomercy-1.0.0.gem',
         provider => 'gem',
         install_options => ['--local','--no-ri','--no-rdoc'],
      }
       
      Notice: Compiled catalog for windowsmeupscotty in environment production in 1.10 seconds
      Error: Could not update: Execution of 'c:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/gem.bat install -v 1.0.0 --source c:/diplomercy-1.0.0.gem diplomercy --local --no-ri --no-rdoc' returned 1: ERROR:  While executing gem ... (OptionParser::InvalidArgument)
          invalid argument: --source c:/diplomercy-1.0.0.gem
      Wrapped exception:
      Execution of 'c:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/gem.bat install -v 1.0.0 --source c:/diplomercy-1.0.0.gem diplomercy --local --no-ri --no-rdoc' returned 1: ERROR:  While executing gem ... (OptionParser::InvalidArgument)
          invalid argument: --source c:/diplomercy-1.0.0.gem
      Error: /Stage[main]/Main/Package[diplomercy]/ensure: change from absent to 1.0.0 failed: Could not update: Execution of 'c:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/gem.bat install -v 1.0.0 --source c:/diplomercy-1.0.0.gem diplomercy --local --no-ri --no-rdoc' returned 1: ERROR:  While executing gem ... (OptionParser::InvalidArgument)
          invalid argument: --source c:/diplomercy-1.0.0.gem
      Notice: Finished catalog run in 3.19 seconds
      

        Attachments

          Activity

            People

            • Assignee:
              john.duarte John Duarte
              Reporter:
              fiddyspence Chris Spence
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support