fix: Pass nodeadm user data variables from root module down to nodegroup sub-modules (#2981)

This commit is contained in:
Bryant Biggs
2024-03-20 21:33:00 -04:00
committed by GitHub
parent 1627231af6
commit 84effa0e30
8 changed files with 59 additions and 1 deletions

View File

@@ -81,6 +81,28 @@ variable "user_data_template_path" {
default = ""
}
variable "cloudinit_pre_nodeadm" {
description = "Array of cloud-init document parts that are created before the nodeadm document part"
type = list(object({
content = string
content_type = optional(string)
filename = optional(string)
merge_type = optional(string)
}))
default = []
}
variable "cloudinit_post_nodeadm" {
description = "Array of cloud-init document parts that are created after the nodeadm document part"
type = list(object({
content = string
content_type = optional(string)
filename = optional(string)
merge_type = optional(string)
}))
default = []
}
################################################################################
# Launch template
################################################################################