Skip to content

Instantly share code, notes, and snippets.

@rgalite
Forked from ryanb/chef_solo_bootstrap.sh
Created October 31, 2012 10:19
Show Gist options
  • Save rgalite/3986276 to your computer and use it in GitHub Desktop.
Save rgalite/3986276 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo with Bitnami Ruby AMI
#!/usr/bin/env bash
# Set locale to en_US
sudo echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
echo "export LC_ALL=\"en_US.UTF-8\"" >> /home/bitnami/.bash_profile
export LC_ALL="en_US.UTF-8"
# Fix libstdc++
sudo rm /opt/bitnami/common/lib/libstdc++.so.6 && sudo ln -s /usr/lib/libstdc++.so.6 /opt/bitnami/common/lib/libstdc++.so.6
# Install essential packages
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git-core
# Update rubygems
sudo gem update --system
# Install chef
sudo gem install chef ruby-shadow --no-ri --no-rdoc
git clone git://github.com/RudthMael/chef-bootstrap-bitnami.git /home/bitnami/chef
sudo ln -s /home/bitnami/chef /var/chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment