4 Vagrant.configure("2") do |config|
5 # Configure VM RAM and CPU for VirtualBox
6 config.vm.provider :virtualbox do |virtualbox|
7 virtualbox.memory = 1024
8 # Two cores over default one for faster builds
12 # Configure VM RAM and CPU for LibVirt
13 config.vm.provider :libvirt do |libvirt|
15 # Two cores over default one for faster builds
19 # NFS is fragile, disable it and use rsync
20 config.nfs.functional = false
22 # Sync folders /packaging/deb/ and /vagrant
23 config.vm.synced_folder ".", "/vagrant"
25 # Start from Debian VM so resulting pkgs will build on all Deb derivatives
26 config.vm.box = "debian/jessie64"
28 # Install pkg dev tools, Python libs for build scripts, gdebi to test install
29 config.vm.provision "shell", inline: "apt-get install -y --force-yes \
39 # Add jessie-backports
40 config.vm.provision "shell", inline: <<-SHELL
41 echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list