We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da4034 commit 2878f1dCopy full SHA for 2878f1d
modules/terraform-libvirt-instance/main.tf
@@ -44,7 +44,6 @@ data "template_file" "user_data" {
44
}
45
46
47
-# Create the machine
48
resource "libvirt_domain" "service-vm" {
49
count = var.instance_count
50
name = var.instance_count > 1 ? "${var.instance_hostname}-${count.index}" : var.instance_hostname
@@ -109,6 +108,13 @@ resource "libvirt_domain" "service-vm" {
109
108
autoport = "true"
110
111
+ # necessary when using UEFI
112
+ lifecycle {
113
+ ignore_changes = [
114
+ nvram
115
+ ]
116
+ }
117
+
118
xml {
119
xslt = var.instance_type == "windows" ? file("${path.module}/windows-patch.xsl") : file("${path.module}/linux-patch.xsl")
120
0 commit comments