self-hosting/Vagrantfile

30 lines
821 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision "shell", inline: "apt-get update"
config.vm.define "lime2-test" do |lime2|
lime2.vm.box = "debian/bookworm64"
lime2.vm.hostname = "lime2-test"
lime2.vm.provider :libvirt do |libvirt|
libvirt.memory = 1024
end
end
config.vm.define "mailserver-test" do |mailserver|
mailserver.vm.box = "debian/bookworm64"
mailserver.vm.hostname = "mailserver-test"
mailserver.vm.provider :libvirt do |libvirt|
libvirt.storage :file, :size => '6G'
end
mailserver.vm.provision "shell" do |shell|
shell.inline = <<-SHELL
apt-get install -y lvm2
vgcreate vg_$HOSTNAME /dev/vdb
SHELL
end
end
end