openstack_compute_aggregate_v2

Manages a Host Aggregate within Openstack Nova.

Example Usage

Full example

resource "openstack_compute_aggregate_v2" "dell_servers" {
  region = "RegionOne"
  name   = "dell_servers"
  zone   = "nova"
  metadata = {
    cpus = "56"
  }
  hosts = [
    "myhost01.example.com",
    "myhost02.example.com",
  ]
}

Minimum required example

resource "openstack_compute_aggregate_v2" "test" {
  name = "test"
}

Arguments Reference

The following arguments are supported:

Import

You can import an existing Host Aggregate by their ID.

$ terraform import openstack_compute_aggregate_v2.myaggregate 24

The ID can be obtained with an openstack command:

$ openstack aggregate list
+----+------+-------------------+
| ID | Name | Availability Zone |
+----+------+-------------------+
| 59 | test | None              |
+----+------+-------------------+