mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-29 22:01:35 +02:00
Adding install_snippets support.
During the "real" first boot (install boot), we need tu run butane config to manipulate disks, so we add install_snippets variable to do so. This snippets are added to the install.yaml butane configuration
This commit is contained in:
@ -55,6 +55,7 @@ data "ct_config" "install" {
|
||||
baseurl_flag = var.cached_install ? "-b ${var.matchbox_http_endpoint}/assets/flatcar" : ""
|
||||
})
|
||||
strict = true
|
||||
snippets = var.install_snippets
|
||||
}
|
||||
|
||||
# Match a worker to a profile by MAC
|
||||
|
@ -60,6 +60,12 @@ variable "snippets" {
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "install_snippets" {
|
||||
type = list(string)
|
||||
description = "List of Butane snippets to run with the install command"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "node_labels" {
|
||||
type = list(string)
|
||||
description = "List of initial node labels"
|
||||
|
Reference in New Issue
Block a user