Skip to content
This repository has been 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

Open
petems opened this issue Mar 19, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@petems
Copy link
Member

petems commented Mar 19, 2018

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 petems/petems-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']
  }
@petems petems added the enhancement New feature or request label Mar 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant