diff options
Diffstat (limited to 'hcl2/variables.pkr.hcl')
-rw-r--r-- | hcl2/variables.pkr.hcl | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/hcl2/variables.pkr.hcl b/hcl2/variables.pkr.hcl new file mode 100644 index 0000000..1c49a48 --- /dev/null +++ b/hcl2/variables.pkr.hcl @@ -0,0 +1,124 @@ +# Read the variables type constraints documentation +# https://www.packer.io/docs/templates/hcl_templates/variables#type-constraints +# for more info. + +variable "accelerator" { + type = string + default = "kvm" +} + +variable "base_dir" { + type = string + default = null +} + +variable "boot_command" { + type = list(string) + sensitive = true + default = null +} + +variable "boot_wait" { + type = string + default = "5s" +} + +variable "disk_image" { + type = bool + default = false +} + +variable "disk_interface" { + type = string + default = "virtio-scsi" +} + +variable "disk_size" { + type = string + default = "20G" +} + +variable "extra_ansible_args" { + type = string + default = null +} + +variable "format" { + type = string + default = "qcow2" +} + +variable "headless" { + type = bool + default = true +} + +variable "http_dir" { + type = string + default = null +} + +variable "iso_checksum" { + type = string + default = null +} + +variable "iso_url" { + type = string + default = null +} + +variable "output_directory" { + type = string + default = null +} + +variable "playbook_file" { + type = string + default = null +} + +variable "qemuargs" { + type = list(tuple([string, string])) + default = [ + ["-cpu", "host"], + ["-m", "4096"], + ["-smp", "2"] + ] +} + +variable "shutdown_command" { + type = string + default = "systemctl poweroff" +} + +variable "skip_compaction" { + type = bool + default = true +} + +variable "ssh_password" { + type = string + sensitive = true + default = "secret" +} + +variable "ssh_timeout" { + type = string + default = "60m" +} + +variable "ssh_username" { + type = string + default = "root" +} + +variable "use_backing_file" { + type = bool + default = false +} + +variable "vm_name" { + type = string + default = null +} |