hashicorp / terraform-provider-vsphere

Terraform Provider for VMware vSphere
https://registry.terraform.io/providers/hashicorp/vsphere/
Mozilla Public License 2.0
619 stars 452 forks source link

Add support for all services in vsphere_vnic #2029

Open xabileiro opened 1 year ago

xabileiro commented 1 year ago

Community Guidelines

Description

I am configuring the vmk of a host with "vsphere_vnic" and when I want to configure the services it tells me that it only accepts ["vsan" "vmotion" "management"].

β”‚ Error: expected services.1 to be one of ["vsan" "vmotion" "management"], got vSphereBackupNFC
β”‚
β”‚   with vsphere_vnic.vmk_mgmt,
β”‚   on networks.tf line 176, in resource "vsphere_vnic" "vmk_mgmt":
β”‚  176:   services                = [
β”‚  177:     "management",
β”‚  178:     "vSphereBackupNFC",
β”‚  179:     "vSphereReplication",
β”‚  180:     "vSphereReplicationNFC"
β”‚  181:   ]

Use Case(s)

Create a cluster

Potential Terraform Provider Configuration

resource "vsphere_vnic" "vmk_mgmt" {
  host                    = data.vsphere_host.h1.id
  distributed_switch_port = vsphere_distributed_virtual_switch.dvs.id
  distributed_port_group  = vsphere_distributed_port_group.pg.id
  ipv4 {
    dhcp   = true
  }
  netstack = "defaultTcpipStack"
  mtu      = 9000
  services = [
    "management",
    "vSphereBackupNFC",
    "vSphereReplication",
    "vSphereReplicationNFC"
  ]
}

References

1594

github-actions[bot] commented 1 year ago

Hello, xabileiro! πŸ–

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

rismoney commented 1 year ago

side mention - https://github.com/hashicorp/terraform-provider-vsphere/pull/2017#issuecomment-1753832562

github-actions[bot] commented 7 months ago

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!