Created
August 22, 2014 16:40
-
-
Save VinceMacBuche/f4c5ce51d4e4daf97d16 to your computer and use it in GitHub Desktop.
node definition
This file contains hidden or 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
(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