diff options
Diffstat (limited to 'source.pkr.hcl')
-rw-r--r-- | source.pkr.hcl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source.pkr.hcl b/source.pkr.hcl new file mode 100644 index 0000000..34c1d2e --- /dev/null +++ b/source.pkr.hcl @@ -0,0 +1,26 @@ +# A build block runs provisioner and post-processors on a source. +# Read the documentation for source blocks here: +# https://www.packer.io/docs/templates/hcl_templates/blocks/source + +source "qemu" "ansible" { + accelerator = "${var.accelerator}" + boot_command = "${var.boot_command}" + boot_wait = "${var.boot_wait}" + disk_image = "${var.disk_image}" + disk_interface = "${var.disk_interface}" + disk_size = "${var.disk_size}" + format = "${var.format}" + headless = "${var.headless}" + http_directory = "${var.http_dir}" + iso_checksum = "${var.iso_checksum}" + iso_url = "${var.iso_url}" + output_directory = "${var.output_directory}" + qemuargs = "${var.qemuargs}" + shutdown_command = "${var.shutdown_command}" + skip_compaction = "${var.skip_compaction}" + ssh_password = "${var.ssh_password}" + ssh_timeout = "${var.ssh_timeout}" + ssh_username = "${var.ssh_username}" + use_backing_file = "${var.use_backing_file}" + vm_name = "${var.vm_name}" +} |