infra/home/terraform/outputs.tf
2025-09-06 12:46:26 -05:00

50 lines
1.6 KiB
HCL

# Caddy Proxy Outputs
output "caddy_proxy_ip" {
description = "IP address of the Caddy proxy server"
value = "204.110.191.212"
}
# # # Proxmox Outputs
# output "control_plane_ips" {
# description = "IP addresses of K3s control plane nodes"
# value = [
# for i in range(var.control_plane_count) :
# cidrhost(var.network_cidr, var.control_plane_ip_start + i)
# ]
# }
#
# output "worker_ips" {
# description = "IP addresses of K3s worker nodes"
# value = [
# for i in range(var.worker_count) :
# cidrhost(var.network_cidr, var.worker_ip_start + i)
# ]
# }
#
# output "control_plane_names" {
# description = "Names of K3s control plane nodes"
# value = [for vm in proxmox_virtual_environment_vm.k3s_control : vm.name]
# }
#
# output "worker_names" {
# description = "Names of K3s worker nodes"
# value = [for vm in proxmox_virtual_environment_vm.k3s_worker : vm.name]
# }
#
# output "cluster_info" {
# description = "Summary of the K3s cluster"
# value = {
# cluster_name = var.cluster_name
# control_plane_nodes = {
# count = var.control_plane_count
# ips = [for i in range(var.control_plane_count) : cidrhost(var.network_cidr, var.control_plane_ip_start + i)]
# names = [for i in range(var.control_plane_count) : "${var.cluster_name}-control-${i + 1}"]
# }
# worker_nodes = {
# count = var.worker_count
# ips = [for i in range(var.worker_count) : cidrhost(var.network_cidr, var.worker_ip_start + i)]
# names = [for i in range(var.worker_count) : "${var.cluster_name}-worker-${i + 1}"]
# }
# }
# }