Restructure: move infra packages to root level
This commit is contained in:
19
terraform-pve-vm/terraform/outputs.tf
Normal file
19
terraform-pve-vm/terraform/outputs.tf
Normal file
@@ -0,0 +1,19 @@
|
||||
output "vm_names" {
|
||||
description = "Created VM names"
|
||||
value = [for vm in proxmox_virtual_environment_vm.ubuntu_vm : vm.name]
|
||||
}
|
||||
|
||||
output "vm_ids" {
|
||||
description = "Created VM IDs"
|
||||
value = [for vm in proxmox_virtual_environment_vm.ubuntu_vm : vm.vm_id]
|
||||
}
|
||||
|
||||
output "vm_nodes" {
|
||||
description = "PVE nodes hosting each VM"
|
||||
value = { for k, vm in proxmox_virtual_environment_vm.ubuntu_vm : k => vm.node_name }
|
||||
}
|
||||
|
||||
output "vm_ipv4" {
|
||||
description = "Static IPv4 addresses"
|
||||
value = { for k, vm in proxmox_virtual_environment_vm.ubuntu_vm : k => vm.initialization[0].ip_config[0].ipv4[0].address }
|
||||
}
|
||||
Reference in New Issue
Block a user