added vagrant build

This commit is contained in:
jon brookes 2025-08-04 21:44:28 +01:00
parent 2997f0252a
commit 6eabd40021
8 changed files with 240 additions and 12 deletions

View file

@ -8,7 +8,7 @@
Vagrant.configure("2") do |config|
# VM 1 Configuration
config.vm.define "vm1" do |vm1|
vm1.vm.box = "hashicorp/bionic64"
vm1.vm.box = "ubuntu/jammy64"
# run ip link to list network interfaces on linux
# run ipconfig to list network interfaces on Windows
@ -33,7 +33,7 @@ Vagrant.configure("2") do |config|
# Uncomment the following line to use a specific network interface for the public network
# and replace "wlp0s20f3" with your actual network interface name.
# vm1.vm.network "public_network", bridge: "wlp0s20f3"
vm1.vm.network "public_network", bridge: "wlp0s20f3"
vm1.vm.network "private_network", type: "dhcp"
@ -44,13 +44,14 @@ Vagrant.configure("2") do |config|
vm1.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y jq
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
# VM 2 Configuration
config.vm.define "vm2" do |vm2|
vm2.vm.box = "hashicorp/bionic64"
vm2.vm.box = "ubuntu/jammy64"
# Private network for inter-VM communication using DHCP
vm2.vm.network "private_network", type: "dhcp"
@ -65,13 +66,14 @@ Vagrant.configure("2") do |config|
vm2.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y jq
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
# VM 3 Configuration
config.vm.define "vm3" do |vm3|
vm3.vm.box = "hashicorp/bionic64"
vm3.vm.box = "ubuntu/jammy64"
# Private network for inter-VM communication using DHCP
vm3.vm.network "private_network", type: "dhcp"
@ -86,9 +88,8 @@ Vagrant.configure("2") do |config|
vm3.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y jq
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
end