Parametrized QEMU accelerator
This commit is contained in:
parent
38426c091e
commit
5bce0eb3c9
@ -49,7 +49,7 @@ source "qemu" "main" {
|
|||||||
http_directory = "./qemu/http/"
|
http_directory = "./qemu/http/"
|
||||||
output_directory = "./dist/qemu/"
|
output_directory = "./dist/qemu/"
|
||||||
|
|
||||||
accelerator = "kvm"
|
accelerator = var.qemu_accelerator
|
||||||
cpus = 1
|
cpus = 1
|
||||||
memory = 512
|
memory = 512
|
||||||
headless = true
|
headless = true
|
||||||
|
@ -9,3 +9,9 @@ variable "digitalocean_api_token" {
|
|||||||
description = "DigitalOcean API token"
|
description = "DigitalOcean API token"
|
||||||
default = "xxxx"
|
default = "xxxx"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "qemu_accelerator" {
|
||||||
|
type = string
|
||||||
|
description = "The accelerator type to use when running the VM"
|
||||||
|
default = "kvm"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user