23 lines
714 B
Ruby
23 lines
714 B
Ruby
# -*- 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 = "provision/glpi.yml" # Lance le playbook glpi.yml
|
|
end
|
|
end
|
|
end
|
|
|