1
1
Fork 0
mirror of https://github.com/adammck/terraform-inventory synced 2024-05-24 21:26:03 +02:00

Add Nutanix provider (#105)

This commit is contained in:
Falk Stern 2019-02-14 16:53:36 +01:00 committed by Adam Mckaig
parent ce9a7cad98
commit dd5c915c19
2 changed files with 12 additions and 10 deletions

View File

@ -23,6 +23,7 @@ The following providers are supported:
* Scaleway
* SoftLayer
* VMware
* Nutanix
It's very simple to add support for new providers. See pull requests with the
[provider][pv] label for examples.

View File

@ -16,16 +16,16 @@ var nameParser *regexp.Regexp
func init() {
keyNames = []string{
"ipv4_address", // DO and SoftLayer
"public_ip", // AWS
"public_ipv6", // Scaleway
"private_ip", // AWS
"ipaddress", // CS
"ip_address", // VMware, Docker
"network_interface.0.ipv4_address", // VMware
"default_ip_address", // provider.vsphere v1.1.1
"access_ip_v4", // OpenStack
"floating_ip", // OpenStack
"ipv4_address", // DO and SoftLayer
"public_ip", // AWS
"public_ipv6", // Scaleway
"private_ip", // AWS
"ipaddress", // CS
"ip_address", // VMware, Docker
"network_interface.0.ipv4_address", // VMware
"default_ip_address", // provider.vsphere v1.1.1
"access_ip_v4", // OpenStack
"floating_ip", // OpenStack
"network_interface.0.access_config.0.nat_ip", // GCE
"network_interface.0.access_config.0.assigned_nat_ip", // GCE
"network_interface.0.address", // GCE
@ -35,6 +35,7 @@ func init() {
"network_interface.0.addresses.0", // Libvirt
"network.0.address", // Packet
"primary_ip", // Profitbricks
"nic_list.0.ip_endpoint_list.0.ip", // Nutanix
}
// type.name.0