Created
November 9, 2010 12:09
-
-
Save mikezter/669016 to your computer and use it in GitHub Desktop.
chef-bootstrap.rb
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 ruby | |
def cmd(cmd) | |
puts cmd; system(cmd) | |
end | |
cmd "echo 'deb http://apt.opscode.com/ lenny main' | tee /etc/apt/sources.list.d/opscode.list" | |
cmd "wget -qO - http://apt.opscode.com/packages@opscode.com.gpg.key | apt-key add -" | |
cmd "aptitude -y update" | |
cmd "aptitude -y install git-core htop" | |
cmd "git clone git@github.com:Beko-Kaeuferportal/scripts.git ~/scripts" | |
cmd "mkdir -p /etc/chef/ && cp ~/scripts/validation.pem /etc/chef/validation.pem" | |
cmd "aptitude -y install irb libshadow-ruby1.8 ruby1.8-dev gcc g++ curl" | |
cmd "aptitude -y install zlib1g-dev libssl-dev libreadline5-dev libopenssl-ruby build-essential" | |
cmd "aptitude -y install chef << echo 'https://api.opscode.com/organizations/beko'" | |
# cmd "mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install" | |
# | |
# cmd '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" ' | |
# cmd "rvm install ree" | |
# cmd "rvm use ree" | |
# | |
# cmd "gem install rdoc chef ohai --no-ri --no-rdoc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment