kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch18/Vagrantfile

138 lines
3.3 KiB
Ruby
Raw Normal View History

Vagrant.configure("2") do |config|
config.vm.define "kiamol-control" do |control|
control.vm.box = "bento/ubuntu-20.04"
control.vm.hostname = "kiamol-control"
control.vm.network "private_network", type: "dhcp"
control.vm.provider :hyperv do |v|
v.vmname = "kiamol-control"
v.maxmemory = 3000
v.cpus = 2
end
control.vm.provider :virtualbox do |v|
v.name = "kiamol-control"
v.memory = 3000
v.cpus = 2
end
end
config.vm.define "kiamol-node" do |node|
node.vm.box = "bento/ubuntu-20.04"
node.vm.hostname = "kiamol-node"
node.vm.network "private_network", type: "dhcp"
node.vm.provider :hyperv do |v|
v.vmname = "kiamol-node"
v.maxmemory = 1500
v.cpus = 1
end
node.vm.provider :virtualbox do |v|
v.name = "kiamol-node"
v.memory = 1500
v.cpus = 1
end
end
config.vm.define "kiamol-node2" do |node2|
node2.vm.box = "bento/ubuntu-20.04"
node2.vm.hostname = "kiamol-node2"
node2.vm.network "private_network", type: "dhcp"
node2.vm.provider :hyperv do |v|
v.vmname = "kiamol-node2"
v.maxmemory = 1500
v.cpus = 1
end
node2.vm.provider :virtualbox do |v|
v.name = "kiamol-node2"
v.memory = 1500
v.cpus = 1
end
end
config.vm.define "kiamol-node3" do |node3|
node3.vm.box = "bento/ubuntu-20.04"
node3.vm.hostname = "kiamol-node3"
node3.vm.network "private_network", type: "dhcp"
node3.vm.provider :hyperv do |v|
v.vmname = "kiamol-node3"
v.maxmemory = 1500
v.cpus = 1
end
node3.vm.provider :virtualbox do |v|
v.name = "kiamol-node3"
v.memory = 1500
v.cpus = 1
end
end
config.vm.define "kiamol-node-win" do |nodewin|
nodewin.vm.box = "kiamol/windows-2019"
nodewin.vm.hostname = "kiamol-node-win"
nodewin.vm.network "private_network", type: "dhcp"
nodewin.vm.guest = "windows"
nodewin.vm.communicator = "winrm"
nodewin.vm.provider :hyperv do |v|
v.vmname = "kiamol-node-win"
v.maxmemory = 3000
v.cpus = 1
end
nodewin.vm.provider :virtualbox do |v|
v.name = "kiamol-node-win"
v.memory = 3000
v.cpus = 1
end
end
config.vm.define "kiamol-node-win2" do |nodewin2|
nodewin2.vm.box = "kiamol/windows-2019"
nodewin2.vm.hostname = "kiamol-node-win2"
nodewin2.vm.network "private_network", type: "dhcp"
nodewin2.vm.guest = "windows"
nodewin2.vm.communicator = "winrm"
nodewin2.vm.provider :hyperv do |v|
v.vmname = "kiamol-node-win2"
v.maxmemory = 3000
v.cpus = 1
end
nodewin2.vm.provider :virtualbox do |v|
v.name = "kiamol-node-win2"
v.memory = 3000
v.cpus = 1
end
end
config.vm.define "kiamol-node-win3" do |nodewin3|
nodewin3.vm.box = "kiamol/windows-2019"
nodewin3.vm.hostname = "kiamol-node-win3"
nodewin3.vm.network "private_network", type: "dhcp"
nodewin3.vm.guest = "windows"
nodewin3.vm.communicator = "winrm"
nodewin3.vm.provider :hyperv do |v|
v.vmname = "kiamol-node-win3"
v.maxmemory = 3000
v.cpus = 1
end
nodewin3.vm.provider :virtualbox do |v|
v.name = "kiamol-node-win3"
v.memory = 3000
v.cpus = 1
end
end
end