feat: Automatically fetch Talos install image
This commit is contained in:
parent
5def74736b
commit
7d4baad8ff
7 changed files with 110 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue