-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Labels
area/networkingArea: NetworkingArea: NetworkingenhancementEnhancementEnhancementnew-resourceNew ResourceNew ResourceupstreamUpstreamUpstream
Milestone
Description
Description
I'd like to see Network Protocol Profile (NPP) as managed resource in vSphere plugin of Terraform. We are using Terraform and Rancher. Rancher creates the VMs to vSphere, not Terraform. Rancher doesn't have IP pooling so my choices are manage IP pooling manually using scripts or using NPP. But since I'd like to manage my vSphere using Terraform, I'd need NPP support to vSphere.
Potential Terraform Configuration
resource "vsphere_datacenter_network_protocol_profile" {
name = "npp-hosts"
datacenter_id = "${vsphere_datacenter.onsite_datacenter.moid}"
dns_domain = "terraform.example"
host_prefix = "terraform"
dns_search_path = "vmware.com eng.vmware.com"
http_proxy = "web-proxy:3192"
port_groups = ["${vsphere_host_port_group.onsite_pg.name}", "${vsphere_distributed_port_group.onsite_dst_pg.name}"]
ipv4 {
subnet = "10.0.10.0/24"
gateway = "10.0.10.254"
dhcp_present = false
dns_servers = ["8.8.8.8", "4.4.4.4"]
ip_pool {
enabled = true
ip_pool_range = "10.0.10.1#16"
}
}
ipv6 {
subnet = "fe80::764d:28ff:fe58:c94/96"
gateway = "fe80::764d:28ff:fe58::1"
dns_servers = [" 2001:db8:ef53::1, 2001:db8:ef53::2"]
ip_pool {
enabled = true
ip_pool_range = "::36a4#16"
}
}
}References
See vSphere documentation here https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.networking.doc/GUID-D24DBAA0-68BD-49B9-9744-C06AE754972A.html
I didn't see any documentation about existing REST API endpoint for this so it might be that without that, this is undoable.
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
mcmcghee, optym-support, jferguson496, TheMoves, braunsonm and 14 more
Metadata
Metadata
Assignees
Labels
area/networkingArea: NetworkingArea: NetworkingenhancementEnhancementEnhancementnew-resourceNew ResourceNew ResourceupstreamUpstreamUpstream