Skip to content

Instantly share code, notes, and snippets.

@johnpaulhayes
Created November 27, 2013 13:50
Show Gist options
  • Save johnpaulhayes/7675987 to your computer and use it in GitHub Desktop.
Save johnpaulhayes/7675987 to your computer and use it in GitHub Desktop.
Multi-machine Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :mongo1 do |mongo1|
mongo1.vm.box = "precise64"
mongo1.vm.network :hostonly, "192.168.33.20"
mongo1.vm.customize ["modifyvm", :id, "--memory", 512]
end
config.vm.define :mongo2 do |mongo2|
mongo2.vm.box = "precise64"
mongo2.vm.network :hostonly, "192.168.33.21"
mongo2.vm.customize ["modifyvm", :id, "--memory", 512]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment