Ensure that host volumes are only on the required nodes

This commit is contained in:
2025-05-25 23:35:36 +10:00
parent 8b0b7c1e73
commit e52c2c1fc5
4 changed files with 19 additions and 19 deletions

View File

@@ -14,12 +14,13 @@ terraform {
provider "template" {}
variable "nodes" {
description = "Map of nodes with host, password, and bind interface"
description = "Map of nodes with host, password, bind interface, and host volumes"
type = map(object({
host = string
password = string
bind_interface = string
bootstrap = optional(bool, false) # Optional field for bootstrap nodes
host_volumes = list(string)
}))
}
@@ -29,6 +30,7 @@ locals {
hostname = v.host
bind_interface = v.bind_interface
bootstrap = v.bootstrap
host_volumes = v.host_volumes
})
}
}