Last active
December 16, 2015 11:09
-
-
Save tatsuya6502/5425523 to your computer and use it in GitHub Desktop.
Bootstrapping OpsCode Chef on Joyent SmartOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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