Installing Chef on Joyent’s SmartOS

This is effectively the same procedure as installing Chef on Solaris with pkgsrc or OpenSolaris/OpenIndiana with IPS. We’ll be using Joyent’s provided pkgsrc setup and pkgin installer.

If you’re using SmartOS on the Joyent Cloud, you’ll have pkgin already available. If you’re running SmartOS yourself, you’ll need to install it.

@benjaminws threw up a bootstrap template for the following as well!

The bits:

pkgin install gcc-compiler gcc-runtime gcc-tools-0 ruby19 scmgit-base scmgit-docs gmake sun-jdk6

tar -xzf rubygems-1.8.10.tgz
cd rubygems-1.8.10
ruby setup.rb --no-format-executable

gem install --no-ri --no-rdoc chef

mkdir /etc/chef

cat <<EOF>> /etc/chef/client.rb
log_level        :info
log_location     STDOUT
chef_server_url  ""
validation_client_name "chef-validator"
node_name ""

Drop your validation.pem in /etc/chef, and then run chef-client.

Posted Monday, October 10th, at 3:30 PM (∞).
blog comments powered by Disqus

Powered by Tumblr; themed by Adam Lloyd.