-
-
Save rgalite/3986276 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo with Bitnami Ruby AMI
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
#!/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