This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-mklive/packer/hcl2/build-cloud-generic.pkr.hcl

38 lines
871 B
HCL
Raw Normal View History

2023-08-14 02:03:12 +01:00
build {
name = "cloud-generic-x86_64"
source "source.qemu.x86_64" {
boot_command = [
"<tab><wait>",
"auto autourl=http://{{.HTTPIP}}:{{.HTTPPort}}/x86_64.cfg",
"<enter>"
]
vm_name = "voidlinux-x86_64"
output_directory = "cloud-generic-x86_64"
}
provisioner "shell" {
script = "scripts/cloud.sh"
execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
}
build {
name = "cloud-generic-x86_64-musl"
source "source.qemu.x86_64" {
boot_command = [
"<tab><wait>",
"auto autourl=http://{{.HTTPIP}}:{{.HTTPPort}}/x86_64-musl.cfg",
"<enter>"
]
vm_name = "voidlinux-x86_64-musl"
output_directory = "cloud-generic-x86_64-musl"
}
provisioner "shell" {
script = "scripts/cloud.sh"
execute_command = "echo 'void' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
}