We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0178abc commit 7c56dc7Copy full SHA for 7c56dc7
modules/virt-machine/main.tf
@@ -25,6 +25,10 @@ resource "libvirt_domain" "virt-machine" {
25
hostname = format("${var.vm_hostname_prefix}%02d", count.index + 1)
26
}
27
28
+ xml {
29
+ xslt = (var.hugepages == true ? file("${path.module}/xslt/hugepages.xsl") : null)
30
+ }
31
+
32
console {
33
type = "pty"
34
target_port = "0"
modules/virt-machine/variables.tf
@@ -30,6 +30,12 @@ variable "memory" {
default = "1024"
+variable "hugepages" {
+ description = "Set Hugepages"
35
+ type = bool
36
+ default = false
37
+}
38
39
variable "vcpu" {
40
description = "Number of vCPUs"
41
default = 1
0 commit comments