diff --git a/data/data/libvirt/main.tf b/data/data/libvirt/main.tf index ccc4b3a08f1..51c75c46f4c 100644 --- a/data/data/libvirt/main.tf +++ b/data/data/libvirt/main.tf @@ -64,8 +64,8 @@ resource "libvirt_domain" "master" { name = "${var.tectonic_cluster_name}-master-${count.index}" - memory = "3072" - vcpu = "2" + memory = "${var.libvirt_master_memory}" + vcpu = "${var.libvirt_master_vcpu}" coreos_ignition = "${libvirt_ignition.master.id}" diff --git a/data/data/libvirt/variables-libvirt.tf b/data/data/libvirt/variables-libvirt.tf index cb76f1c5504..b48e7913145 100644 --- a/data/data/libvirt/variables-libvirt.tf +++ b/data/data/libvirt/variables-libvirt.tf @@ -32,3 +32,19 @@ variable "tectonic_libvirt_master_ips" { type = "list" description = "the list of desired master ips. Must match tectonic_master_count" } + +# It's definitely recommended to bump this if you can. +variable "libvirt_master_memory" { + type = "string" + description = "RAM in MiB allocated to masters" + default = "4096" +} + +# At some point this one is likely to default to the number +# of physical cores you have. See also +# https://pagure.io/standard-test-roles/pull-request/223 +variable "libvirt_master_vcpu" { + type = "string" + description = "CPUs allocated to masters" + default = "2" +}