Skip to content

Commit

Permalink
libvirt: Add Terraform variables for bootstrap node memory/CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
sjug committed Dec 10, 2018
1 parent f7d6d29 commit a55a161
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/data/libvirt/bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ resource "libvirt_ignition" "bootstrap" {
resource "libvirt_domain" "bootstrap" {
name = "${var.cluster_name}-bootstrap"

memory = "2048"
memory = "${var.libvirt_bootstrap_memory}"

vcpu = "2"
vcpu = "${var.libvirt_bootstrap_vcpu}"

coreos_ignition = "${libvirt_ignition.bootstrap.id}"

Expand Down
12 changes: 12 additions & 0 deletions data/data/libvirt/bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ variable "network_id" {
type = "string"
description = "The ID of a network resource containing the bootstrap node's addresses."
}

variable "libvirt_bootstrap_memory" {
type = "string"
description = "RAM in MiB allocated to bootstrap node"
default = "2048"
}

variable "libvirt_bootstrap_vcpu" {
type = "string"
description = "CPUs allocated to bootstrap node"
default = "2"
}

0 comments on commit a55a161

Please sign in to comment.