I am trying to use lvm cookbook. In my environment i do not have internet and i am using gem_package in my wrapper cookbook to install gems. I am trying to use below code, in this it is trying to check package locally but dependent packages are still looked in internet url.
gem_package ‘di-ruby-lvm’ do
gem_package[di-ruby-lvm] (EBSMount::default line 42) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with , but received ‘2’
---- Begin output of /opt/chef/embedded/bin/gem install /home/scripts/di-ruby-lvm-0.2.1.gem -q --no-rdoc --no-ri -v “0.2.1” ----
STDERR: ERROR: Could not find a valid gem ‘open4’ (>= 0.9.6, ~> 0.9), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) for “api.rubygems.org” port 443 (https://api.rubygems.org/specs.4.8.gz)