Ajout des vagrantfiles au dépôt.
This commit is contained in:
24
bts_annee_2/vagrantfiles/ansible/vagrantfile
Normal file
24
bts_annee_2/vagrantfiles/ansible/vagrantfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- 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
|
Reference in New Issue
Block a user