Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sawanoboly/5acb1123f59d6c7985bc to your computer and use it in GitHub Desktop.
Save sawanoboly/5acb1123f59d6c7985bc to your computer and use it in GitHub Desktop.
Chef bootstrap_install_command for smartos14.3
## For SmartOS14.3.0
knife[:bootstrap_install_command] =<<"EOL"
if ! exists /opt/local/bin/chef-client; then
pkgin -y install gcc47 git gmake ruby214-base ruby214-yajl ruby214-nokogiri ruby214-readline pkg-config
pkgin -y install libxslt
## install chef
gem update --system --no-ri --no-rdoc
gem uninstall nokogiri --version 1.6.1 # missing native extention
gem install --no-ri --no-rdoc nokogiri
gem uninstall yajl-ruby --version 1.1.0 # missing native extention
gem install --no-ri --no-rdoc yajl-ruby
gem install --no-ri --no-rdoc ohai
gem install --no-ri --no-rdoc chef
gem install --no-ri --no-rdoc builder
gem install --no-ri --no-rdoc bundler
gem install --no-ri --no-rdoc rb-readline
fi
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment