Created
March 22, 2012 16:58
-
-
Save pblittle/2159687 to your computer and use it in GitHub Desktop.
Vagrantfile to build deploy and app boxes (sans chef)
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
box_name = "lucid64" | |
box_url = "http://files.vagrantup.com/#{box_name}.box" | |
net_base = "33.33.33" | |
current_dir = File.dirname(__FILE__) | |
Vagrant::Config.run do |config| | |
config.vm.define :app do |app| | |
app.vm.box = box_name | |
app.vm.box_url = box_url | |
app.vm.forward_port 80, 8000 | |
app.vm.forward_port 22, 2200 | |
app.vm.network :hostonly, "#{net_base}.00" | |
app.vm.customize [ | |
"modifyvm", :id, | |
"--memory", "1024", | |
"--name", "app-01" | |
] | |
end | |
config.vm.define :deploy do |deploy| | |
deploy.vm.box = box_name | |
deploy.vm.box_url = box_url | |
deploy.vm.forward_port 22, 2210 | |
deploy.vm.network :hostonly, "#{net_base}.10" | |
deploy.vm.customize [ | |
"modifyvm", :id, | |
"--memory", "1024", | |
"--name", "deploy-01" | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment