-
Notifications
You must be signed in to change notification settings - Fork 176
/
output.tf
34 lines (28 loc) · 853 Bytes
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
output "DC_ID" {
description = "id of vSphere Datacenter"
value = data.vsphere_datacenter.dc.id
}
output "ResPool_ID" {
description = "Resource Pool id"
value = var.vmrp != "" ? data.vsphere_resource_pool.pool[0].id : var.vmrpid
}
output "VM" {
description = "VM Names"
value = vsphere_virtual_machine.vm.*.name
}
output "ip" {
description = "default ip address of the deployed VM"
value = vsphere_virtual_machine.vm.*.default_ip_address
}
output "guest-ip" {
description = "all the registered ip address of the VM"
value = vsphere_virtual_machine.vm.*.guest_ip_addresses
}
output "uuid" {
description = "UUID of the VM in vSphere"
value = vsphere_virtual_machine.vm.*.uuid
}
output "disk" {
description = "Disks of the deployed VM"
value = vsphere_virtual_machine.vm.*.disk
}