Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Add ability to configure JRUBY_JAR setting to avoid undefined method 'keep_alive_timeout=' for #<Net::HTTP..." errors #57

Description

@petems

What are you seeing

Currently, it's not possible to use the module to configure the JRUBY_JAR setting to use the newer 9k JRuby, meaning if you have a gem that requires Ruby > 2.1, you see errors like undefined method 'keep_alive_timeout=' for #<Net::HTTP..." (such as voxpupuli/puppet-hiera_vault#5)

Affected Puppet, Ruby, OS and module versions/distributions

  • Module version: Latest Commit (356e078)

Any additional information you'd like to impart

Current workaround is this quick ini_setting code, but to keep with the rest of the module we could use augeas:

ini_setting { "Change jruby to 9k":
    ensure  => present,
    setting => 'JRUBY_JAR',
    path    => "/etc/sysconfig/puppetserver",
    key_val_separator => '=',
    section => '',
    value   => '"/opt/puppetlabs/server/apps/puppetserver/jruby-9k.jar"',
    show_diff => true,
    notify  => Class['puppetserver::service']
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions