Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-1998

Bundled ruby throws error on net/http usage with vault gem

    Details

    • Template:
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      OS: Ubuntu 16.04 LTS 64 Bit
      Puppet Source: apt.puppetlabs.com (PC1)
      

      puppetserver gem list

      *** LOCAL GEMS ***
       
      deep_merge (1.1.1)
      fast_gettext (1.1.0)
      gettext (3.2.2)
      gettext-setup (0.26)
      hocon (1.1.3)
      jar-dependencies (0.2.6)
      jruby-openssl (0.9.16 java)
      json (1.8.0 java)
      locale (2.1.2)
      puppet-strings (1.1.0)
      rake (10.1.0)
      rdoc (4.1.2)
      rgen (0.8.2)
      semantic_puppet (0.1.3)
      text (1.3.1)
      vault (0.10.1)
      yard (0.9.9)
      

      Error Output:

      2017-10-04 15:56:40,932 ERROR [qtp266666617-77] [puppetserver] Puppet Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `keep_alive_timeout=' for #<Net::HTTP xxx.xxx:9999 open=true> at /etc/puppetlabs/code/environments/development/manifests/site.pp:2:1 on node xxx
      

      Sample Code Snippet:

        require 'net/http'
        require 'json'
        require 'vault'
       
        vault = Vault::Client.new
        vault.configure do |config|
          config.address = "https://xxx.xxx:9999"
          config.token = "xxx"
          config.ssl_verify = false
          config.ssl_ciphers = "DEFAULT"
          config.timeout = 30
          config.ssl_timeout  = 5
          config.open_timeout = 5
          config.read_timeout = 30
        end
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                skoop Stefan Koop
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support