Ensure that host volumes are only on the required nodes
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user