Files
vms/sources/vmware-iso.pkr.hcl
T

30 lines
924 B
HCL
Raw Normal View History

2023-11-27 21:00:35 -06:00
source "vmware-iso" "amd64" {
2023-12-06 08:21:32 -08:00
iso_url = var.iso.url
2024-04-10 12:56:52 -05:00
iso_target_path = "cache/${basename(var.iso.url)}"
2023-12-06 08:21:32 -08:00
iso_checksum = var.iso.checksum
output_directory = "output/vmware/${local.name}"
2023-08-14 01:05:21 -05:00
2023-12-06 08:21:32 -08:00
boot_command = var.boot_command
shutdown_command = var.shutdown_command
boot_wait = var.boot_wait
2023-08-14 01:05:21 -05:00
2023-12-06 08:21:32 -08:00
ssh_timeout = local.ssh.timeout
ssh_username = local.ssh.username
ssh_password = local.ssh.password
ssh_handshake_attempts = local.ssh.handshake_attempts
ssh_private_key_file = "vagrant/insecure_key"
2023-08-14 01:05:21 -05:00
2023-12-06 08:21:32 -08:00
vm_name = "packer-${local.name}"
disk_size = "${local.disk_size}000"
cpus = local.cpus
memory = local.memory
headless = var.headless
#guest_os_type = "Linux_64"
2023-08-14 01:05:21 -05:00
2023-12-06 08:21:32 -08:00
http_content = var.http_files
http_directory = var.http_directory
cd_content = var.cd_content
cd_files = var.cd_files
cd_label = var.cd_label
2023-08-14 01:05:21 -05:00
}