Last active
January 2, 2021 11:21
-
-
Save vancanhuit/494cce044089891fd0225b352bb4af6b to your computer and use it in GitHub Desktop.
Simple vagrant setup with internal network.
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 : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "vancanhuit/debian10" | |
config.vm.base_mac = nil | |
config.vm.define "node1" do |node| | |
node.vm.hostname = "node1" | |
node.vm.network "private_network", ip: "192.168.10.5", virtualbox__intnet: "inet1" | |
end | |
config.vm.define "node2" do |node| | |
node.vm.hostname = "node2" | |
node.vm.network "private_network", ip: "192.168.10.6", virtualbox__intnet: "inet1" | |
node.vm.network "private_network", ip: "192.168.11.6", virtualbox__intnet: "inet2" | |
end | |
config.vm.define "node3" do |node| | |
node.vm.hostname = "node3" | |
node.vm.network "private_network", ip: "192.168.11.5", virtualbox__intnet: "inet2" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment