Added virtual machines and talos config to create a three node cluster

This commit is contained in:
Max Pfeiffer
2024-11-09 12:32:59 +01:00
parent 9e2b64cc8c
commit ee675221d9
18 changed files with 411 additions and 1 deletions

22
providers.tf Normal file
View File

@@ -0,0 +1,22 @@
terraform {
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "3.0.1-rc4"
}
talos = {
source = "siderolabs/talos"
version = "0.7.0-alpha.0"
}
}
}
provider "proxmox" {
pm_api_url= var.proxmox_api_url
pm_api_token_id = var.proxmox_api_token_id
pm_api_token_secret = var.proxmox_api_token_secret
pm_tls_insecure = true
# Switching off parallelism is necessary here, as VM provisioning fails otherwise
# see: https://github.com/Telmate/terraform-provider-proxmox/issues/173
pm_parallel = 1
}