Skip to content

Instantly share code, notes, and snippets.

@VinceMacBuche
Created August 22, 2014 16:40
Show Gist options
  • Save VinceMacBuche/f4c5ce51d4e4daf97d16 to your computer and use it in GitHub Desktop.
Save VinceMacBuche/f4c5ce51d4e4daf97d16 to your computer and use it in GitHub Desktop.
node definition
(1..10).each { |i|
n = i.to_s()
config.vm.define ("node"+n+"_"+os[:name]).to_sym do |node_config|
node_config.vm.provision :shell, :path => "provision/"+os[:node]
node_config.vm.network :private_network, ip: "192.168.42.1"+n
node_config.vm.box = os[:box]
node_config.vm.box_url = os[:url]
node_config.vm.provider :virtualbox
node_config.vm.hostname = "node"+n
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment