diff --git a/terraform/slurm_cluster/modules/_slurm_instance/variables.tf b/terraform/slurm_cluster/modules/_slurm_instance/variables.tf index 3adb24f1..06c9feec 100644 --- a/terraform/slurm_cluster/modules/_slurm_instance/variables.tf +++ b/terraform/slurm_cluster/modules/_slurm_instance/variables.tf @@ -138,13 +138,13 @@ variable "labels" { ######### variable "slurm_instance_role" { - description = "Slurm instance type. Must be one of: controller; login; compute." + description = "Slurm instance type. Must be one of: controller; login; dbd; compute." type = string default = null validation { - condition = contains(["controller", "login", "compute"], lower(var.slurm_instance_role)) - error_message = "Must be one of: controller; login; compute." + condition = contains(["controller", "login", "dbd", "compute"], lower(var.slurm_instance_role)) + error_message = "Must be one of: controller; login; dbd; compute." } } diff --git a/terraform/slurm_cluster/modules/slurm_instance_template/variables.tf b/terraform/slurm_cluster/modules/slurm_instance_template/variables.tf index da1a42ba..479b5530 100644 --- a/terraform/slurm_cluster/modules/slurm_instance_template/variables.tf +++ b/terraform/slurm_cluster/modules/slurm_instance_template/variables.tf @@ -340,15 +340,15 @@ variable "additional_disks" { variable "slurm_instance_role" { type = string - description = "Slurm instance type. Must be one of: controller; login; compute; or null." + description = "Slurm instance type. Must be one of: controller; dbd; login; compute; or null." default = null validation { condition = ( var.slurm_instance_role == null ? true - : contains(["controller", "login", "compute"], lower(var.slurm_instance_role))) - error_message = "Must be one of: controller; login; compute; or null." + : contains(["controller", "dbd", "login", "compute"], lower(var.slurm_instance_role))) + error_message = "Must be one of: controller; dbd; login; compute; or null." } }