Skip to content

Commit

Permalink
Fix setting plan for worker nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Fairbanks <[email protected]>
  • Loading branch information
rossf7 committed Feb 14, 2024
1 parent 5f3cf07 commit 598189e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/equinix-metal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "equinix_metal_device" "control_plane" {
resource "equinix_metal_device" "worker" {
for_each = var.worker_nodes
hostname = "${var.cluster_name}-worker-${each.key}"
plan = each.plan
plan = each.value.plan
metro = var.device_metro
operating_system = var.device_os
billing_cycle = var.billing_cycle
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/equinix-metal/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ variable "ssh_private_key_path" {
}

variable "worker_nodes" {
description = "List of worker node names"
description = "Map of worker nodes and config"
type = map(object({
labels = map(string)
plan = string
Expand Down

0 comments on commit 598189e

Please sign in to comment.