infra/terraform/talos_outputs.tf
2026-01-11 11:27:34 -06:00

63 lines
2.1 KiB
HCL

# Outputs for Talos VMs
# Control Plane Outputs
output "talos_cp1_mac" {
description = "MAC address of talos-cp1"
value = try(proxmox_virtual_environment_vm.talos_cp1.network_device[0].mac_address, "Not yet created")
}
output "talos_cp1_vmid" {
description = "VMID of talos-cp1"
value = try(proxmox_virtual_environment_vm.talos_cp1.vm_id, "Not yet created")
}
output "talos_cp2_mac" {
description = "MAC address of talos-cp2"
value = try(proxmox_virtual_environment_vm.talos_cp2.network_device[0].mac_address, "Not yet created")
}
output "talos_cp2_vmid" {
description = "VMID of talos-cp2"
value = try(proxmox_virtual_environment_vm.talos_cp2.vm_id, "Not yet created")
}
output "talos_cp3_mac" {
description = "MAC address of talos-cp3"
value = try(proxmox_virtual_environment_vm.talos_cp3.network_device[0].mac_address, "Not yet created")
}
output "talos_cp3_vmid" {
description = "VMID of talos-cp3"
value = try(proxmox_virtual_environment_vm.talos_cp3.vm_id, "Not yet created")
}
# Worker Outputs
output "talos_worker1_mac" {
description = "MAC address of talos-worker1"
value = try(proxmox_virtual_environment_vm.talos_worker1.network_device[0].mac_address, "Not yet created")
}
output "talos_worker1_vmid" {
description = "VMID of talos-worker1"
value = try(proxmox_virtual_environment_vm.talos_worker1.vm_id, "Not yet created")
}
output "talos_worker2_mac" {
description = "MAC address of talos-worker2"
value = try(proxmox_virtual_environment_vm.talos_worker2.network_device[0].mac_address, "Not yet created")
}
output "talos_worker2_vmid" {
description = "VMID of talos-worker2"
value = try(proxmox_virtual_environment_vm.talos_worker2.vm_id, "Not yet created")
}
output "talos_worker3_mac" {
description = "MAC address of talos-worker3"
value = try(proxmox_virtual_environment_vm.talos_worker3.network_device[0].mac_address, "Not yet created")
}
output "talos_worker3_vmid" {
description = "VMID of talos-worker3"
value = try(proxmox_virtual_environment_vm.talos_worker3.vm_id, "Not yet created")
}