Skip to content

Commit 95f2e9b

Browse files
committed
wip: add nodegroup typedefs
1 parent 0a796d3 commit 95f2e9b

File tree

1 file changed

+10
-1
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/tofu

1 file changed

+10
-1
lines changed

environments/skeleton/{{cookiecutter.environment}}/tofu/variables.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ variable "cluster_image_id" {
7171
}
7272

7373
variable "compute" {
74-
type = any
74+
type = object(
75+
object({
76+
nodes = list(string)
77+
flavor = string
78+
image_id = optional(string)
79+
extra_networks = list(map(string))
80+
vnic_types = map(string)
81+
compute_init_enable = list(string)
82+
ignore_image_changes = bool
7583
description = <<-EOF
7684
Mapping defining homogenous groups of compute nodes. Groups are used
7785
in Slurm partition definitions.
@@ -100,6 +108,7 @@ variable "compute" {
100108
gateway_ip: Address to add default route via
101109
nodename_template: Overrides variable cluster_nodename_template
102110
EOF
111+
default = {}
103112
}
104113

105114
variable "environment_root" {

0 commit comments

Comments
 (0)