Created
October 6, 2011 17:34
-
-
Save mlavin/1268047 to your computer and use it in GitHub Desktop.
Vagrant Setup
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
# Install Ruby 1.8 | |
sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby wget | |
sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby | |
sudo ln -s /usr/bin/ri1.8 /usr/bin/ri | |
sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc | |
sudo ln -s /usr/bin/irb1.8 /usr/bin/irb | |
# Install Ruby Gems from source | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz | |
tar xvzf rubygems-1.3.7.tgz | |
cd rubygems-1.3.7 | |
sudo ruby setup.rb | |
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem | |
sudo gem update --system | |
# Install vagrant gem | |
sudo gem install vagrant | |
# Add lucid32 box | |
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box |
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
Vagrant::Config.run do |config| | |
config.vm.define :"dbmaster" do |config| | |
config.vm.box = "lucid32" | |
config.vm.network("33.33.33.10") | |
config.vm.customize do |vm| | |
vm.memory_size = 256 | |
end | |
end | |
config.vm.define :"app1" do |config| | |
config.vm.box = "lucid32" | |
config.vm.network("33.33.33.11") | |
config.vm.customize do |vm| | |
vm.memory_size = 256 | |
end | |
end | |
config.vm.define :"app2" do |config| | |
config.vm.box = "lucid32" | |
config.vm.network("33.33.33.12") | |
config.vm.customize do |vm| | |
vm.memory_size = 256 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment