From f82c0ca9ea02247f7dc9a3a26cbdd967b8ebda9b Mon Sep 17 00:00:00 2001 From: Sebastian Jug Date: Sun, 9 Dec 2018 19:46:23 -0500 Subject: [PATCH] libvirt: Add Terraform variables for bootstrap node memory/CPU --- data/data/libvirt/bootstrap/main.tf | 4 ++-- data/data/libvirt/bootstrap/variables.tf | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/data/libvirt/bootstrap/main.tf b/data/data/libvirt/bootstrap/main.tf index 549e6aa464d..31dba4ff715 100644 --- a/data/data/libvirt/bootstrap/main.tf +++ b/data/data/libvirt/bootstrap/main.tf @@ -11,9 +11,9 @@ resource "libvirt_ignition" "bootstrap" { resource "libvirt_domain" "bootstrap" { name = "${var.cluster_id}-bootstrap" - memory = "2048" + memory = "${var.libvirt_bootstrap_memory}" - vcpu = "2" + vcpu = "${var.libvirt_bootstrap_vcpu}" coreos_ignition = libvirt_ignition.bootstrap.id diff --git a/data/data/libvirt/bootstrap/variables.tf b/data/data/libvirt/bootstrap/variables.tf index 85e456d222d..e84eb9205b8 100644 --- a/data/data/libvirt/bootstrap/variables.tf +++ b/data/data/libvirt/bootstrap/variables.tf @@ -23,4 +23,3 @@ variable "network_id" { type = string description = "The ID of a network resource containing the bootstrap node's addresses." } -