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

32 lines
1.0 KiB
HCL

source "hyperv-iso" "amd64" {
iso_urls = [ "cache/${basename(var.iso.url)}" ]
iso_target_path = "cache/${basename(var.iso.url)}"
iso_checksum = var.iso.checksum
output_directory = "output/hyperv/${local.name}"
boot_command = var.boot_command
shutdown_command = var.shutdown_command
boot_wait = var.boot_wait
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 = local.ssh.private_key_file
#ssh_host = "10.42.2.254"
vm_name = "packer-${local.name}"
disk_size = "${local.disk_size}000"
cpus = local.cpus
memory = local.memory
headless = var.headless
switch_name = "packer-amd64"
#mac_address = "0000deadbeef"
generation = 2
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
}