mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
refactor(tofu): extract variables into their own files
The .tfvars files are normally gitignored, but they serve as an example here. Just need to make sure I don't commit a secret... Inpired by #236
This commit is contained in:
@@ -34,8 +34,8 @@ data "talos_machine_configuration" "this" {
|
||||
vip = var.cluster.vip
|
||||
}), each.value.machine_type == "controlplane" ?
|
||||
templatefile("${path.module}/machine-config/control-plane.yaml.tftpl", {
|
||||
cilium_values = var.cilium.values
|
||||
cilium_install = var.cilium.install
|
||||
cilium_values = file("${path.root}/${var.cilium.values_path}")
|
||||
cilium_install = file("${path.root}/${var.cilium.install_manifest_path}")
|
||||
base_domain = var.cluster.base_domain
|
||||
}) : ""
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user