# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.synced_folder ".", "/vagrant", disabled: true
  config.vm.provision "shell" do |shell|
    shell.inline = <<-SHELL
      export DEBIAN_FRONTEND=noninteractive
      apt-get update
      apt-get autoremove -y --purge unattended-upgrades
    SHELL
  end

  config.vm.define "lime2-test" do |lime2|
    lime2.vm.box = "debian/bookworm64"
    lime2.vm.hostname = "lime2-test"
    lime2.vm.network :private_network, :ip => "10.1.2.80"
    lime2.vm.provider :libvirt do |libvirt|
      libvirt.memory = 1024
      libvirt.cpus = 1
    end
  end

  config.vm.define "eumycota-test" do |eumycota|
    eumycota.vm.box = "debian/bookworm64"
    eumycota.vm.hostname = "eumycota-test"
    eumycota.vm.network :private_network, :ip => "10.1.2.25"
    eumycota.vm.provider :libvirt do |libvirt|
      libvirt.memory = 4096
      libvirt.cpus = 2
      libvirt.storage :file, :size => '6G'
    end
    eumycota.vm.provision "shell" do |shell|
      shell.inline = <<-SHELL
        export DEBIAN_FRONTEND=noninteractive
        apt-get install -y lvm2
        vgcreate vg_$HOSTNAME /dev/vdb
      SHELL
    end
  end

end