nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/action_provision
nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/action_set_name nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/box_meta nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/creator_uid nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/id nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/index_uuid nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/private_key nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/synced_folders nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/machines/default/virtualbox/vagrant_cwd nouveau fichier : sio2/SISR/10-ha/bookworm/.vagrant/rgloader/loader.rb renommé : sio2/SISR/10-ha/vagrantfile_bookworm -> sio2/SISR/10-ha/bookworm/Vagrantfile nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/action_provision nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/action_set_name nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/box_meta nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/creator_uid nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/id nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/index_uuid nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/private_key nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/synced_folders nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv1/virtualbox/vagrant_cwd nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/action_provision nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/action_set_name nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/box_meta nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/creator_uid nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/id nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/index_uuid nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/private_key nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/synced_folders nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/machines/srv2/virtualbox/vagrant_cwd nouveau fichier : sio2/SISR/10-ha/rsync/.vagrant/rgloader/loader.rb nouveau fichier : sio2/SISR/10-ha/rsync/Vagrantfile supprimé : sio2/SISR/10-ha/vagrantfile_rsync
This commit is contained in:
27
sio2/SISR/10-ha/rsync/Vagrantfile
vendored
Normal file
27
sio2/SISR/10-ha/rsync/Vagrantfile
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# -*- 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 "srv1" do |srv1|#VM No'1
|
||||
srv1.vm.box = "debian/bookworm64" #Setting machine type
|
||||
srv1.vm.hostname = "srv1" #Setting machine type
|
||||
srv1.vm.network "public_network", ip: "192.168.0.111"#Set static IP
|
||||
srv1.vm.provision "shell", inline: <<-SHELL
|
||||
timedatectl set-timezone Europe/Paris
|
||||
apt-get install -y wget curl vim unzip apache2
|
||||
echo "192.168.0.112 srv2" >> /etc/hosts
|
||||
SHELL
|
||||
end
|
||||
|
||||
config.vm.define "srv2" do |srv2|# VM No2
|
||||
srv2.vm.box = "debian/bookworm64" #Setting machine type
|
||||
srv2.vm.hostname = "srv2" #Setting machine type
|
||||
srv2.vm.network "public_network", ip: "192.168.0.112" #Set static IP
|
||||
srv2.vm.provision "shell", inline: <<-SHELL
|
||||
timedatectl set-timezone Europe/Paris
|
||||
apt-get install -y wget curl vim unzip apache2
|
||||
echo "192.168.0.111 srv1" >> /etc/hosts
|
||||
SHELL
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user