This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Description
I have the following in modules/people/manifests/sebroeder/ruby.pp:
class people::sebroeder::ruby {
class { 'ruby::build':
ensure => 'v20150502'
}
ruby::version { '2.0.0-p645': }
}
The installed Ruby cannot open any https URLs and throws OpenSSL::SSL::SSLErrors:
RBENV_VERSION=2.0.0-p645 ruby -ropen-uri -e 'open("https://google.com").read'
/opt/rubies/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:921:in `connect': SSL_connect returned=1 errno=0 state=unknown state: certificate verify failed (OpenSSL::SSL::SSLError)
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:921:in `block in connect'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:921:in `connect'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:851:in `start'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:313:in `open_http'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /opt/rubies/2.0.0-p645/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from -e:1:in `<main>'
The same ruby works fine when I uninstall it and then install it again manually with either
rbenv install 2.0.0-p645 /opt/rubies/2.0.0-p645
or
ruby-build 2.0.0-p645 /opt/rubies/2.0.0-p645
This affects all rubies I tested (2.0.0-p645, 2.1.6, 2.2.2).