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

puppet 3.x tied to system ruby undermining rvm/rbenv

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.8.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      puppet honors rvm/rbenv specified ruby version

      Show
      puppet honors rvm/rbenv specified ruby version
    • Team:
      Agent

      Description

      [root@k2az0bdud52fvwd ~]# rvm list
      rvm rubies
      =* ruby-1.8.7-head [ x86_64 ]
         ruby-1.8.7-p374 [ x86_64 ]
      # => - current
      # =* - current && default
      #  * - default
      [root@k2az0bdud52fvwd ~]# ruby --version
      ruby 1.8.7 (2014-01-28 patchlevel 376) [x86_64-linux]
      [root@k2az0bdud52fvwd ~]# puppet --version
      /usr/local/rvm/gems/ruby-1.8.7-head/gems/json-1.8.3/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
      ruby 2.0.0p353 (2013-11-22) [x86_64-linux]
      -- Control frame information -----------------------------------------------
      c:0048 p:---- s:0238 e:000237 CFUNC  :initialize
      c:0047 p:---- s:0236 e:000235 CFUNC  :new
      c:0046 p:0075 s:0233 e:000230 METHOD /usr/local/rvm/gems/ruby-1.8.7-head/gems/json-1.8.3/lib/json/common.rb:67
      c:0045 p:0070 s:0222 e:000220 CLASS  /usr/local/rvm/gems/ruby-1.8.7-head/gems/json-1.8.3/lib/json/ext.rb:17
      

      i had to change puppet.rb:

      #!/usr/bin/env ruby
       
      $LOAD_PATH.unshift '/usr/share/ruby/vendor_ruby'
      # For security reasons, ensure that '.' is not on the load path
      # This is primarily for 1.8.7 since 1.9.2+ doesn't put '.' on the load path
      $LOAD_PATH.delete '.'
       
      require 'puppet/util/command_line'
      Puppet::Util::CommandLine.new.execute
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            erict Eric Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support