Created
May 21, 2021 13:02
-
-
Save jeffmacdonald/d7ea2130835120c0d8f45f35c352c6bd 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 : | |
Vagrant.configure("2") do |config| | |
#config.vm.box = "bento/ubuntu-20.04" | |
config.vm.box = "openlogic/rockylinux-8" | |
config.vm.box_version = "8.3.2011-RC1.v20210503" | |
config.vm.define "node0" do |node0| | |
node0.vm.network "private_network", ip: "192.168.33.10" | |
node0.vm.hostname = "node0" | |
end | |
config.vm.define "node1" do |node1| | |
node1.vm.network "private_network", ip: "192.168.33.11" | |
node1.vm.hostname = "node1" | |
end | |
config.vm.define "node2" do |node2| | |
node2.vm.network "private_network", ip: "192.168.33.12" | |
node2.vm.hostname = "node2" | |
end | |
config.vm.define "node3" do |node3| | |
node3.vm.network "private_network", ip: "192.168.33.13" | |
node3.vm.hostname = "node3" | |
end | |
config.vm.define "node4" do |node4| | |
node4.vm.network "private_network", ip: "192.168.33.14" | |
node4.vm.hostname = "node4" | |
end | |
config.vm.define "node5" do |node5| | |
node5.vm.network "private_network", ip: "192.168.33.15" | |
node5.vm.hostname = "node5" | |
end | |
config.vm.define "node6" do |node6| | |
node6.vm.network "private_network", ip: "192.168.33.16" | |
node6.vm.hostname = "node6" | |
end | |
config.vm.define "node7" do |node7| | |
node7.vm.network "private_network", ip: "192.168.33.17" | |
node7.vm.hostname = "node7" | |
end | |
config.vm.define "node8" do |node8| | |
node8.vm.network "private_network", ip: "192.168.33.18" | |
node8.vm.hostname = "node8" | |
end | |
config.vm.define "node9" do |node9| | |
node9.vm.network "private_network", ip: "192.169.33.19" | |
node9.vm.hostname = "node9" | |
end | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine and only allow access | |
# via 127.0.0.1 to disable public access | |
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment