Vagrantfile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This Vagrantfile is designed to be used with artifacts that have been built by goreleaser.
  2. # (eg, snapshot builds on GitHub)
  3. Vagrant.configure("2") do |config|
  4. config.vm.provision "shell", inline: "mkdir /etc/OliveTin && chmod o+w /etc/OliveTin/ && mkdir -p /opt/OliveTin-configs/ && chmod 0777 /opt/OliveTin-configs", privileged: true
  5. config.vm.provision "file", source: "tests/.", destination: "/tmp/test-configs/"
  6. config.vm.provision "shell", inline: "for dir in /tmp/test-configs/*/; do if [ -f \"$dir/config.yaml\" ]; then cp -r \"$dir\" /opt/OliveTin-configs/$(basename \"$dir\")/; fi; done", privileged: true
  7. config.vm.provider :libvirt do |libvirt|
  8. libvirt.management_network_device = 'virbr0'
  9. end
  10. config.vm.define :stream9 do |i|
  11. i.vm.box = "centos/stream9"
  12. i.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.rpm", destination: "$HOME/"
  13. i.vm.provision "shell", inline: "rpm -U OliveTin* && systemctl enable --now OliveTin && systemctl disable --now firewalld"
  14. end
  15. config.vm.define :fedora38 do |i|
  16. i.vm.box = "generic/fedora38"
  17. i.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.rpm", destination: "$HOME/"
  18. i.vm.provision "shell", inline: "rpm -U OliveTin* && systemctl enable --now OliveTin && systemctl disable --now firewalld"
  19. end
  20. config.vm.define :debian12 do |i|
  21. i.vm.box = "debian/bookworm64"
  22. i.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.deb", destination: "$HOME/"
  23. i.vm.provision "shell", inline: "dpkg --force-confold -i OliveTin* && systemctl enable --now OliveTin"
  24. end
  25. config.vm.define :ubuntu2310 do |i|
  26. i.vm.box = "ubuntu/mantic64"
  27. i.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.deb", destination: "$HOME/"
  28. i.vm.provision "shell", inline: "dpkg --force-confold -i OliveTin* && systemctl enable --now OliveTin && systemctl disable --now firewalld"
  29. end
  30. end