blob: fb563f5866078a28b17972aca47e4c6ea1376887 (
plain) (
tree)
|
|
# 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 "ansible_extra_arguments" {
type = string
default = "-v"
}
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
}
|