projet AP4 ansible glpi
This commit is contained in:
22
sio2/AP4/Vagrantfile
vendored
Normal file
22
sio2/AP4/Vagrantfile
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
# export http_proxy=http://10.121.38.1:8080
|
||||
# export https_proxy=http://10.121.38.1:8080
|
||||
timedatectl set-timezone Europe/Paris
|
||||
apt-get -y update
|
||||
apt-get -y upgrade
|
||||
SHELL
|
||||
|
||||
config.vm.define "glpi" do |glpi| # VM No'1
|
||||
glpi.vm.box = "debian/bookworm64" # Type de la machine
|
||||
glpi.vm.hostname = "glpi" # Nom de la machine
|
||||
glpi.vm.network "public_network" #, ip: "192.168.0.111"# Set static IP
|
||||
glpi.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "glpi.yml" # Lance le playbook glpi.yml
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user