mirror of
https://github.com/adammck/terraform-inventory
synced 2024-11-22 15:52:01 +01:00
Add Nutanix provider (#105)
This commit is contained in:
parent
ce9a7cad98
commit
dd5c915c19
@ -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.
|
||||
|
21
resource.go
21
resource.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user