Created
July 15, 2020 12:30
-
-
Save rhpk/775e844af5ab445c46fc199400e6158f to your computer and use it in GitHub Desktop.
This file contains 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
-*- mode: ruby -*- | |
# vi: set ft=ruby : | |
private_ips = { | |
:node001 => "192.168.123.2", | |
:node002 => "192.168.123.3", | |
:node003 => "192.168.123.4", | |
} | |
Vagrant.configure("2") do |config| | |
[:node001,:node002,:node003].each do |node_id| | |
config.vm.define node_id do |node| | |
node.vm.box = "generic/debian10" | |
node.vm.box_version = "3.0.14" | |
node.vm.network :private_network, ip: private_ips[node_id] | |
node.vm.disk :disk, name: "sidereus", size: "50GB" | |
config.vm.provider "vmware_fusion" do |vmf| | |
vmf.vmx["memsize"] = "4096" | |
vmf.vmx["vhv.enable"] = "TRUE" | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment