build-cloud-generic.pkr.hcl 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. build {
  2. name = "cloud-generic-x86_64"
  3. source "source.qemu.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 = "cloud-generic-x86_64"
  11. }
  12. provisioner "shell" {
  13. script = "scripts/cloud.sh"
  14. execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
  15. }
  16. }
  17. build {
  18. name = "cloud-generic-x86_64-musl"
  19. source "source.qemu.x86_64" {
  20. boot_command = [
  21. "<tab><wait>",
  22. "auto autourl=http://{{.HTTPIP}}:{{.HTTPPort}}/x86_64-musl.cfg",
  23. "<enter>"
  24. ]
  25. vm_name = "voidlinux-x86_64-musl"
  26. output_directory = "cloud-generic-x86_64-musl"
  27. }
  28. provisioner "shell" {
  29. script = "scripts/cloud.sh"
  30. execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
  31. }
  32. }