build-vagrant.pkr.hcl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. build {
  2. name = "vagrant-virtualbox-x86_64"
  3. source "source.virtualbox-iso.x86_64" {
  4. boot_command = [
  5. "<tab><wait>",
  6. "auto autourl=http://{{.HTTPIP}}:{{.HTTPPort}}/x86_64.cfg",
  7. "<enter>"
  8. ]
  9. vm_name = "voidlinux-x86_64"
  10. output_directory = "vagrant-virtualbox-x86_64"
  11. }
  12. provisioner "shell" {
  13. script = "scripts/vagrant.sh"
  14. execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
  15. }
  16. post-processor "vagrant" {
  17. output = "vagrant-virtualbox-x86_64.box"
  18. }
  19. }
  20. build {
  21. name = "vagrant-virtualbox-x86_64-musl"
  22. source "source.virtualbox-iso.x86_64" {
  23. boot_command = [
  24. "<tab><wait>",
  25. "auto autourl=http://{{.HTTPIP}}:{{.HTTPPort}}/x86_64-musl.cfg",
  26. "<enter>"
  27. ]
  28. vm_name = "voidlinux-x86_64-musl"
  29. output_directory = "vagrant-virtualbox-x86_64-musl"
  30. }
  31. provisioner "shell" {
  32. script = "scripts/vagrant.sh"
  33. execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
  34. }
  35. post-processor "vagrant" {
  36. output = "vagrant-virtualbox-x86_64-musl.box"
  37. }
  38. }