Skip to content

Instantly share code, notes, and snippets.

@tatsuya6502
Last active December 16, 2015 11:09
Show Gist options
  • Save tatsuya6502/5425523 to your computer and use it in GitHub Desktop.
Save tatsuya6502/5425523 to your computer and use it in GitHub Desktop.
Bootstrapping OpsCode Chef on Joyent SmartOS
#!/bin/sh
#
# Bootstrapping OpsCode Chef on Joyent SmartOS
#
# Run the following commands from a terminal:
# zlogin UUID
# curl https://gist.github.com/tatsuya6502/5425523/raw/bootstrap-chef-smartos.sh | sh
#
if [ ! -f /opt/local/bin/chef-client ]; then
pkgin -f -y update
pkgin -y install gcc47 gcc47-runtime scmgit-base gmake ruby193-base ruby193-yajl \
ruby193-nokogiri ruby193-readline pkg-config
export PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin
gem install --no-ri --no-rdoc ohai
gem install --no-ri --no-rdoc chef
gem install --no-ri --no-rdoc rb-readline
fi
version=`chef-solo -v`
echo $version installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment