2024-11-28 12:02:52 +01:00

25 lines
850 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: "apt-get update" # execute pour chacune des machines
config.vm.define "infra" do |infra|#VM No'1
infra.vm.box = "debian/bookworm64" #Setting machine type
infra.vm.hostname = "infra" #Setting machine type
infra.vm.network "public_network"
end
config.vm.define "web1" do |srv1|#VM No'1
srv1.vm.box = "debian/bookworm64" #Setting machine type
srv1.vm.hostname = "web1" #Setting machine type
srv1.vm.network "public_network"
end
config.vm.define "web2" do |srv2|# VM No2
srv2.vm.box = "debian/bookworm64" #Setting machine type
srv2.vm.hostname = "web2" #Setting machine type
srv2.vm.network "public_network" #Set static IP
end
end