From 5d6d21108f518fb3b8a151a3a4fa246c5cb8ad0f Mon Sep 17 00:00:00 2001 From: vandomej Date: Sun, 28 Sep 2025 22:00:55 -0700 Subject: [PATCH] Testing out talos provider for config patches --- control_plane/main.tf | 62 +++++++++++++++---- control_plane/patches/controlplane-patch.yaml | 2 +- 2 files changed, 50 insertions(+), 14 deletions(-) diff --git a/control_plane/main.tf b/control_plane/main.tf index 01cabb5..8daca89 100644 --- a/control_plane/main.tf +++ b/control_plane/main.tf @@ -8,6 +8,9 @@ terraform { } } +provider "talos" { + # Configuration options +} # Load variables from a .tfvars file variable "cluster_name" { @@ -91,22 +94,55 @@ resource "null_resource" "talos_cluster" { } } -resource "null_resource" "talos_cluster_patches" { - depends_on = [null_resource.talos_cluster] - triggers = { - patches_hash = filesha1("${path.module}/patches/controlplane-patch.yaml") - } +resource "talos_machine_secrets" "this" {} - provisioner "local-exec" { - command = <