Last active
August 29, 2015 14:23
-
-
Save sawanoboly/5acb1123f59d6c7985bc to your computer and use it in GitHub Desktop.
Chef bootstrap_install_command for smartos14.3
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
## 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