config.vm.define :slave1 do |slave1|
slave1.vm.box = "precise64"
slave1.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "5120"
end
slave1.vm.provider :virtualbox do |v|
v.name = "vm-cluster-node2"
v.customize ["modifyvm", :id, "--memory", "5120"]
end
slave1.vm.network :private_network, ip: "10.211.55.101"
slave1.vm.hostname = "vm-cluster-node2"
slave1.vm.provision :shell, :inline => $slave_script
end
config.vm.define :slave2 do |slave2|
slave2.vm.box = "precise64"
slave2.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "5120"
end
slave2.vm.provider :virtualbox do |v|
v.name = "vm-cluster-node3"
v.customize ["modifyvm", :id, "--memory", "5120"]
end
slave2.vm.network :private_network, ip: "10.211.55.102"
slave2.vm.hostname = "vm-cluster-node3"
slave2.vm.provision :shell, :inline => $slave_script
end
config.vm.define :slave3 do |slave3|
slave3.vm.box = "precise64"
slave3.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "5120"
end
slave3.vm.provider :virtualbox do |v|
v.name = "vm-cluster-node4"
v.customize ["modifyvm", :id, "--memory", "5120"]
end
slave3.vm.network :private_network, ip: "10.211.55.103"
slave3.vm.hostname = "vm-cluster-node4"
slave3.vm.provision :shell, :inline => $slave_script
end
config.vm.define :slave4 do |slave4|
slave4.vm.box = "precise64"
slave4.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "5120"
end
slave4.vm.provider :virtualbox do |v|
v.name = "vm-cluster-node5"
v.customize ["modifyvm", :id, "--memory", "5120"]
end
slave4.vm.network :private_network, ip: "10.211.55.104"
slave4.vm.hostname = "vm-cluster-node5"
slave4.vm.provision :shell, :inline => $slave_script
end
config.vm.define :client do |client|
client.vm.box = "precise64"
client.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "4096"
end
client.vm.provider :virtualbox do |v|
v.name = "vm-cluster-client"
v.customize ["modifyvm", :id, "--memory", "4096"]
end
client.vm.network :private_network, ip: "10.211.55.105"
client.vm.hostname = "vm-cluster-client"
client.vm.provision :shell, :inline => $client_script
end
end