feat: Automatically fetch Talos install image

This commit is contained in:
Peter 2025-10-26 18:14:24 +01:00
parent 5def74736b
commit 7d4baad8ff
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
7 changed files with 110 additions and 38 deletions

View file

@ -1,20 +1,7 @@
terraform {
required_providers {
proxmox = {
source = "Telmate/proxmox"
version = "3.0.2-rc05"
}
talos = {
source = "siderolabs/talos"
version = "0.9.0"
}
}
}
provider "proxmox" {
pm_api_url = "https://10.167.84.10:8006/api2/json"
pm_api_token_id = ""
pm_api_token_secret = ""
pm_tls_insecure = true
endpoint = var.proxmox_endpoint
api_token = var.proxmox_api_token
insecure = true
}
locals {
@ -64,5 +51,10 @@ module "workers" {
name = "worker02"
ip_address = "10.13.38.31"
}]
module "talos-image" {
source = "./modules/talos-image"
talos_version = local.talos_version
}
}
}