mirror of
https://github.com/adammck/terraform-inventory
synced 2024-11-22 07:32:03 +01:00
Add vSphere IP location (#67)
This commit is contained in:
parent
313d404eb3
commit
1063a010f5
@ -10,6 +10,61 @@
|
||||
"datacenter": "mydc"
|
||||
},
|
||||
"resources": {
|
||||
"vsphere_virtual_machine.test": {
|
||||
"type": "vsphere_virtual_machine",
|
||||
"primary": {
|
||||
"id": "test1",
|
||||
"attributes": {
|
||||
"cluster": "Cluster",
|
||||
"datacenter": "Datacenter",
|
||||
"detach_unknown_disks_on_delete": "false",
|
||||
"disk.#": "1",
|
||||
"disk.4123483162.bootable": "false",
|
||||
"disk.4123483162.controller_type": "scsi",
|
||||
"disk.4123483162.datastore": "Datastore",
|
||||
"disk.4123483162.iops": "0",
|
||||
"disk.4123483162.keep_on_remove": "false",
|
||||
"disk.4123483162.key": "0",
|
||||
"disk.4123483162.name": "",
|
||||
"disk.4123483162.size": "0",
|
||||
"disk.4123483162.template": "template",
|
||||
"disk.4123483162.type": "thin",
|
||||
"disk.4123483162.uuid": "",
|
||||
"disk.4123483162.vmdk": "",
|
||||
"dns_servers.#": "2",
|
||||
"dns_servers.0": "8.8.8.8",
|
||||
"dns_servers.1": "8.8.4.4",
|
||||
"domain": "vsphere.local",
|
||||
"enable_disk_uuid": "false",
|
||||
"folder": "",
|
||||
"id": "test1",
|
||||
"linked_clone": "false",
|
||||
"memory": "1024",
|
||||
"memory_reservation": "0",
|
||||
"name": "test1",
|
||||
"network_interface.#": "1",
|
||||
"network_interface.0.adapter_type": "",
|
||||
"network_interface.0.ip_address": "",
|
||||
"network_interface.0.ipv4_address": "1.2.3.4",
|
||||
"network_interface.0.ipv4_gateway": "1.2.3.4",
|
||||
"network_interface.0.ipv4_prefix_length": "22",
|
||||
"network_interface.0.ipv6_address": "",
|
||||
"network_interface.0.ipv6_gateway": "",
|
||||
"network_interface.0.ipv6_prefix_length": "64",
|
||||
"network_interface.0.label": "VM Network",
|
||||
"network_interface.0.mac_address": "",
|
||||
"network_interface.0.subnet_mask": "",
|
||||
"skip_customization": "false",
|
||||
"time_zone": "Etc/UTC",
|
||||
"uuid": "42323d21-8455-92c7-838c-ea0efefea2222",
|
||||
"vcpu": "1"
|
||||
},
|
||||
"meta": {
|
||||
"schema_version": "1"
|
||||
},
|
||||
"tainted": false
|
||||
}
|
||||
},
|
||||
"aws_instance.alpha.0": {
|
||||
"type": "aws_instance",
|
||||
"primary": {
|
||||
|
@ -128,7 +128,7 @@ const exampleStateFile = `
|
||||
"host": "hhhhhhhh",
|
||||
"id": "aaaaaaaa",
|
||||
"image": "Ubunutu 14.04 LTS",
|
||||
"ip_address": "10.20.30.40",
|
||||
"network_interface.0.ipv4_address": "10.20.30.40",
|
||||
"linked_clone": "false",
|
||||
"name": "nnnnnn",
|
||||
"power_on": "true"
|
||||
|
@ -21,6 +21,7 @@ func init() {
|
||||
"private_ip", // AWS
|
||||
"ipaddress", // CS
|
||||
"ip_address", // VMware
|
||||
"network_interface.0.ipv4_address", // VMware
|
||||
"access_ip_v4", // OpenStack
|
||||
"floating_ip", // OpenStack
|
||||
"network_interface.0.access_config.0.nat_ip", // GCE
|
||||
|
Loading…
Reference in New Issue
Block a user