Information Technology Reference
In-Depth Information
# If you installed custom gems, remove +/opt/chef+ manually
$ sudo rm -rf /opt/chef
# Remove PATH entry for Chef from $HOME/.bash_profile
Install Test Kitchen on Linux (Chef Client Only)
We'll be using Test Kitchen to create virtualized sandbox environments in some of the
hands-on exercise. The Chef Client installer does not install Test Kitchen, so you'll need to
install it manually.
You need to install the
test-kitchen
gem. A
gem
is a supporting library or application writ-
ten in Ruby. You can think of a
gem
as the equivalent of an installer for Ruby.
Rubygems.org
maintains a central registry of Ruby gems on the Internet.
Run the
gem install
command as root to install the
test-kitchen
gem. The additional
--
no-ri
and
--no-rdoc
parameters save time by omitting the step that generates documenta-
tion:
$
sudo gem install test-kitchen --no-ri --no-rdoc
Fetching: net-scp-1.2.1.gem (100%)
Fetching: safe_yaml-1.0.3.gem (100%)
Fetching: thor-0.19.1.gem (100%)
Fetching: test-kitchen-1.2.1.gem (100%)
Successfully installed net-scp-1.2.1
Successfully installed safe_yaml-1.0.3
Successfully installed thor-0.19.1
Successfully installed test-kitchen-1.2.1
4 gems installed