Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for vSAN fault domain #1967

Closed
4 tasks done
zxinyu08 opened this issue Aug 1, 2023 · 3 comments · Fixed by #1969
Closed
4 tasks done

Add support for vSAN fault domain #1967

zxinyu08 opened this issue Aug 1, 2023 · 3 comments · Fixed by #1969
Assignees
Labels
area/clustering Area: Clustering area/storage Area: Storage enhancement Type: Enhancement
Milestone

Comments

@zxinyu08
Copy link
Contributor

zxinyu08 commented Aug 1, 2023

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

add support for configuring vSAN fault domains.

Use Case(s)

Add host(s) to vSAN fault domains and remove host(s) from vSAN fault domains.

Potential Terraform Provider Configuration

data "vsphere_host" "faultdomain1_hosts" {
  count         = length(var.faultdomain1_hosts)
  name          = var.faultdomain1_hosts[count.index]
  datacenter_id = data.vsphere_datacenter.datacenter.id
}

data "vsphere_host" "faultdomain2_hosts" {
  count         = length(var.faultdomain2_hosts)
  name          = var.faultdomain2_hosts[count.index]
  datacenter_id = data.vsphere_datacenter.datacenter.id
}

data "vsphere_datacenter" "datacenter" {
  name = "DataCenter"
}

data "vsphere_host" "hosts" {
  count         = length(var.hosts)
  name          = var.hosts[count.index]
  datacenter_id = data.vsphere_datacenter.datacenter.id
}
resource "vsphere_compute_cluster" "cluster" {
  name          = "test"
  datacenter_id = data.vsphere_datacenter.datacenter.id
  host_system_ids = "${data.vsphere_host.hosts.*.id}"

  vsan_enabled       = true
  fault_domains {
    name = "fd1"
    host_ids = "${data.vsphere_host.faultdomain1_hosts.*.id}"
  }
  fault_domains {
    name = "fd2"
    host_ids = "${data.vsphere_host.faultdomain2_hosts.*.id}"
  }
}

References

No response

@zxinyu08 zxinyu08 added the enhancement Type: Enhancement label Aug 1, 2023
@tenthirtyam tenthirtyam added area/storage Area: Storage area/clustering Area: Clustering labels Aug 7, 2023
@tenthirtyam tenthirtyam added this to the Backlog milestone Aug 7, 2023
@tenthirtyam tenthirtyam added vsphere/v8 vSphere 8.0 and removed vsphere/v8 vSphere 8.0 labels Sep 5, 2023
zxinyu08 added a commit to zxinyu08/terraform-provider-vsphere that referenced this issue Oct 19, 2023
zxinyu08 added a commit to zxinyu08/terraform-provider-vsphere that referenced this issue Nov 10, 2023
@tenthirtyam tenthirtyam modified the milestones: Backlog, v2.6.0 Nov 10, 2023
@tenthirtyam tenthirtyam linked a pull request Nov 10, 2023 that will close this issue
2 tasks
Copy link

This functionality has been released in v2.6.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

1 similar comment
Copy link

This functionality has been released in v2.6.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/clustering Area: Clustering area/storage Area: Storage enhancement Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants