add terraform project

This commit is contained in:
2025-12-25 20:25:54 +01:00
commit 81d66e91cd
15 changed files with 1166 additions and 0 deletions

37
terraform/outputs.tf Normal file
View File

@@ -0,0 +1,37 @@
output "talosconfig" {
description = "Talos configuration for cluster access"
value = data.talos_client_configuration.this.talos_config
sensitive = true
}
output "kubeconfig" {
description = "Kubernetes configuration for cluster access"
value = talos_cluster_kubeconfig.this.kubeconfig_raw
sensitive = true
}
output "controlplane_ips" {
description = "Control plane node IPs"
value = local.controlplane_ips
}
output "worker_ips" {
description = "Worker node IPs"
value = local.worker_ips
}
output "controlplane_vm_ids" {
description = "Proxmox VM IDs for control plane nodes"
value = proxmox_virtual_environment_vm.controlplane[*].vm_id
}
output "worker_vm_ids" {
description = "Proxmox VM IDs for worker nodes"
value = proxmox_virtual_environment_vm.worker[*].vm_id
}
output "cluster_endpoint" {
description = "Kubernetes cluster endpoint"
value = var.cluster_endpoint
}