Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vignesh-v3/22309c6fa6d6a9333ce18138391c404a to your computer and use it in GitHub Desktop.
Save vignesh-v3/22309c6fa6d6a9333ce18138391c404a to your computer and use it in GitHub Desktop.
vagrant multivm
BOX_IMAGE = "bento/centos-6.7"
NODE_COUNT = 2
Vagrant.configure("2") do |config|
config.vm.define "master" do |subconfig|
subconfig.vm.box = BOX_IMAGE
end
(1..NODE_COUNT).each do |i|
config.vm.define "node#{i}" do |subconfig|
subconfig.vm.box = BOX_IMAGE
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment