From cdb19b2aaa4eccd0777b6c8e4346e385bb362646 Mon Sep 17 00:00:00 2001 From: vandomej Date: Sat, 27 Sep 2025 23:22:22 -0700 Subject: [PATCH] Storing version in a var --- main.tf | 12 +++++++++--- terraform.tfvars | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 1a1812b..cd65b8d 100644 --- a/main.tf +++ b/main.tf @@ -27,6 +27,12 @@ variable "vcpu_count" { default = 2 } +variable "talos_version" { + description = "The version of Talos to use" + type = string + default = "v1.11.1" +} + # Configure providers provider "talos" {} @@ -39,7 +45,7 @@ data "talos_machine_configuration" "this" { cluster_endpoint = "https://10.5.0.2:6443" machine_type = "controlplane" machine_secrets = talos_machine_secrets.this.machine_secrets - talos_version = "v1.11.1" + talos_version = var.talos_version } data "talos_client_configuration" "this" { @@ -59,8 +65,8 @@ resource "null_resource" "talos_cluster" { provisioner "local-exec" { command = <