Skip to content

Instantly share code, notes, and snippets.

@davidnuon
Created May 2, 2016 18:54
Show Gist options
  • Save davidnuon/f963ecbd47325e41f3422940b8f16a13 to your computer and use it in GitHub Desktop.
Save davidnuon/f963ecbd47325e41f3422940b8f16a13 to your computer and use it in GitHub Desktop.
Multiple Machine configuration in Vagrant
Vagrant.configure("2") do |config|
(0..10).each do |idx|
config.vm.define ("node-#{idx}") do |web|
web.vm.box = "ubuntu/trusty64"
web.vm.hostname = "node-#{idx}"
web.vm.box_url = "ubuntu/precise64"
web.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment