packer-cn/examples/hcl/ubuntu/source.qemu.pkr.hcl
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
* in the examples/hcl folder
* add possibility to name singular build.source blocks to differentiate their output and to filter on them
2020-07-02 11:07:59 +02:00

17 lines
504 B
HCL

source "qemu" "base-ubuntu-amd64" {
headless = var.headless
floppy_files = [
"${local.http_directory}/preseed.cfg",
]
http_directory = local.http_directory
shutdown_command = "echo 'vagrant'|sudo -S shutdown -P now"
ssh_password = "vagrant"
ssh_username = "vagrant"
ssh_wait_timeout = "50m"
disk_size = 5000
disk_interface = "virtio-scsi"
memory = 512 * 4
cpus = 4
boot_wait = "5s"
}