Preparing Solaris 11 for Chef, especially Chef Kitchen(Ruby Gem’s)
For Solaris 11 to be able to run / use Chef Kitchen, you might need to follow the below installation perpetrations.
Note: The notes below extend the article – Using chef kitchen docker build behind corporate proxy firewall
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
pkg install ruby Packages to install: 2 Mediators to change: 1 Create boot environment: No Create backup boot environment: No DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 2/2 14659/14659 14.5/14.5 362k/s PHASE ITEMS Installing new actions 14737/14737 Updating package state database Done Updating package cache 0/0 Updating image state Done Creating fast lookup database Done Updating package cache 2/2 |
To get the Solaris 11 ruby up-to-date, you need to run the below.
1 |
gem update --system |
Note: If you get the below error, you will have to manually update the system described below.
1 2 |
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) |
Manually updating the ruby system.
1 2 3 4 5 6 7 8 9 10 11 |
wget https://rubygems.org/downloads/rubygems-update-2.6.7.gem ... gem install --local /tmp/rubygems-update-2.6.7.gem ... /usr/ruby/2.1/bin/update_rubygems RubyGems 2.6.7 installed Parsing documentation for rubygems-2.6.7 Installing ri documentation for rubygems-2.6.7 === 2.6.7 / 2016-09-26 [..] snip |
Finally, install bundler. to install, just run the below.
1 2 3 4 5 6 7 |
gem install bundler # or gem install bundler -s http://rubygems.org/ gem install test-kitchen Fetching: mixlib-shellout-2.2.7.gem (100%) Successfully installed mixlib-shellout-2.2.7 [..] snip |
Note: In solaris add this to your system PATH, in Linux its usually not necessary.
1 |
/usr/ruby/2.1/bin |
Leave a Reply