33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
# coding: utf-8
|
|
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
# configures the configuration version (we support older styles for
|
|
# backwards compatibility). Please don't change it unless you know what
|
|
# you're doing.
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.box = "debian/bullseye64"
|
|
config.vm.hostname = 'kaz-vm'
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "4096"
|
|
vb.cpus = "2"
|
|
vb.name = "kaz-vm"
|
|
vb.customize ["modifyvm", :id, "--vram", "64", "--clipboard-mode", "bidirectional", '--graphicscontroller', 'vmsvga', '--natnet1', '192.168.64.0/24']
|
|
vb.gui = true
|
|
end
|
|
|
|
|
|
|
|
#permet d'avoir un répertoire partagé entre la VM et le host
|
|
config.vm.synced_folder "/tmp/", "/tmp_host"
|
|
config.vm.synced_folder "files/", "/root/kaz-vagrant"
|
|
|
|
config.vm.provision "shell" do |s|
|
|
s.inline = "/vagrant/files/vm-provision.sh"
|
|
s.env = {"KAZGUARD" => "true", "HOSTLANG" => ENV['LANG'], "NOKAZ" => ENV['NOKAZ'], "KAZBRANCH" => ENV['KAZBRANCH']}
|
|
end
|
|
end
|