oVirt / terraform-provider-ovirt

Terraform provider for oVirt 4.x
https://registry.terraform.io/providers/oVirt/ovirt/latest/docs
Other
137 stars 72 forks source link

ovirt_datacenter resource #492

Open scottd018 opened 1 year ago

scottd018 commented 1 year ago

Please describe what you would like to see

Add support for the ovirt_datacenter resource to manage a datacenter in ovirt.

Please describe the solution you'd like

Using the Terraform ovirt provider, one should be able to create/manage a new datacenter using the following (sample):

# applicable to ovirt 4.5+ (may be backwards compatible with older versions)
resource "ovirt_datacenter" "test" {
  name = "test"
  description = "This is a test datacenter"
  storage_type = "shared" # shared/local
  compatibility_version = "4.7"
  quota_mode = "disabled" # disabled, enforced, audit
  comment = "These are some comments"
}

Please describe your use case

Currently, there does not exist a method to manage an ovirt datacenter. This would add support to be able to create/manage a datacenter in ovirt with Terraform.