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
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz
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 "http://chefserver.example.com:4000"
validation_client_name "chef-validator"
node_name "host.domain.com"
EOF
Drop your validation.pem in /etc/chef, and then run chef-client.