Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeaty-cisco committed Feb 3, 2025
1 parent 473932a commit 3a7ce32
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/aws/node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,21 @@ locals {
module "node_props" {
source = "../node-props"

count = local.node_props_required ? 1 : 0

instance_type = var.instance_type
use_case = "maximal"
}

locals {
hugepages_gb = try(
coalesce(var.hugepages_gb, try(module.node_props[0].hugepages_gb, null)),
coalesce(var.hugepages_gb, local.node_props_required ? module.node_props.hugepages_gb : null)),
null,
)

xrd_vr_cpuset = (
var.isolated_cores != null ?
null :
try(
coalesce(var.xrd_vr_cpuset, try(module.node_props[0].cpuset, null)),
coalesce(var.xrd_vr_cpuset, local.node_props_required ? module.node_props.cpuset : null),
null,
)
)
Expand All @@ -72,7 +70,7 @@ locals {
var.isolated_cores != null ?
null :
try(
coalesce(var.xrd_vr_cp_num_cpus, try(module.node_props[0].cp_num_cpus, null)),
coalesce(var.xrd_vr_cp_num_cpus, local.node_props_required ? module.node_props.cp_num_cpus : null),
null,
)
)
Expand Down

0 comments on commit 3a7ce32

Please sign in to comment.