De-duping MAC addresses and adding outputs
This commit is contained in:
@@ -74,7 +74,7 @@ resource "esxi_guest" "wef" {
|
||||
|
||||
network_interfaces {
|
||||
virtual_network = "var.vm_network"
|
||||
mac_address = "00:50:56:a1:b1:c2"
|
||||
mac_address = "00:50:56:a1:b1:c3"
|
||||
nic_type = "e1000"
|
||||
}
|
||||
network_interfaces {
|
||||
@@ -107,7 +107,7 @@ resource "esxi_guest" "win10" {
|
||||
|
||||
network_interfaces {
|
||||
virtual_network = "var.vm_network"
|
||||
mac_address = "00:50:56:a1:b1:c2"
|
||||
mac_address = "00:50:56:a1:b1:c4"
|
||||
nic_type = "e1000"
|
||||
}
|
||||
network_interfaces {
|
||||
|
||||
@@ -1,13 +1,23 @@
|
||||
output "dc_ips" {
|
||||
output "dc_interfaces" {
|
||||
value = esxi_guest.dc.network_interfaces
|
||||
}
|
||||
|
||||
output "dc_ips" {
|
||||
value = esxi_guest.dc.ip_address
|
||||
}
|
||||
|
||||
output "wef_ips" {
|
||||
output "wef_interfaces" {
|
||||
value = esxi_guest.wef.network_interfaces
|
||||
}
|
||||
|
||||
output "wef_ips" {
|
||||
value = esxi_guest.wef.ip_address
|
||||
}
|
||||
|
||||
output "win10_ips" {
|
||||
output "win10_interfaces" {
|
||||
value = esxi_guest.win10.network_interfaces
|
||||
}
|
||||
|
||||
output "win10_ips" {
|
||||
value = esxi_guest.win10.ip_address
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user