-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (29 loc) · 872 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Simple Vagrant machines for testing in clean environments. Bygg is rsynced to /bygg in the VMs
# when the machines are started or reloaded (vagrant up and vagrant reload, respectively).
machines = [
{
:hostname => "fedora",
:box => "fedora/38-cloud-base",
},
{
:hostname => "debian",
:box => "debian/bookworm64",
},
]
Vagrant.configure(2) do |config|
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 4
libvirt.memory = 2048
end
machines.each do |machine|
config.vm.define machine[:hostname] do |node|
node.vm.synced_folder ".", "/vagrant", disabled: true
node.vm.box = machine[:box]
node.vm.hostname = machine[:hostname]
node.vm.provision "shell",
path: "Vagrantsetup.sh",
privileged: false
node.vm.synced_folder ".", "/home/vagrant/bygg", type: "rsync"
end
end
end