commit 76e3b5688f371af3e732828c2a9d82676de75ae0 parent 7235ba9cbce3b75e412c3e3b3d88bfa873f3d397 Author: Dionysis Grigoropoulos <dgrig@erethon.com> Date: Sun, 20 Dec 2020 00:58:32 +0200 libvirt_host: Use vga when graphics are enabled Diffstat:
terraform/modules/libvirt_host/main.tf | | | 6 | +++++- |
terraform/modules/libvirt_host/vars.tf | | | 7 | ++++++- |
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/terraform/modules/libvirt_host/main.tf b/terraform/modules/libvirt_host/main.tf @@ -51,7 +51,11 @@ resource "libvirt_domain" "libvirt_host" { } graphics { - type = "spice" + type = var.graphics listen_type = (var.enable_graphics == true ? "address" : "none") } + + video { + type = (var.enable_graphics == true ? "vga" : "cirrus") + } } diff --git a/terraform/modules/libvirt_host/vars.tf b/terraform/modules/libvirt_host/vars.tf @@ -81,7 +81,12 @@ variable "disks" { default = [{}] } -variable enable_graphics { +variable "enable_graphics" { type = bool default = false } + +variable "graphics" { + type = string + default = "spice" +}