Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instance_role and dbd_location in slurm_files #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions terraform/slurm_cluster/modules/_slurm_instance/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

Expand Down