mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-07 10:01:27 -05:00
Added scheduler_hints to the OpenStack instance resource.
This allows various hints to be passed to the OpenStack scheduler that will determine where the instance will be hosted in the cloud.
This commit is contained in:
@@ -83,6 +83,9 @@ The following arguments are supported:
|
||||
* `volume` - (Optional) Attach an existing volume to the instance. The volume
|
||||
structure is described below.
|
||||
|
||||
* `scheduler_hints` - (Optional) Provider the Nova scheduler with hints on how
|
||||
the instance should be launched. The available hints are described below.
|
||||
|
||||
The `network` block supports:
|
||||
|
||||
* `uuid` - (Required unless `port` or `name` is provided) The network UUID to
|
||||
@@ -119,6 +122,25 @@ The `volume` block supports:
|
||||
example: `/dev/vdc`. Omit this option to allow the volume to be
|
||||
auto-assigned a device.
|
||||
|
||||
The `scheduler_hints` block supports:
|
||||
|
||||
* `group` - (Optional) A UUID of a Server Group. The instance will be placed
|
||||
into that group.
|
||||
|
||||
* `different_host` - (Optional) A list of instance UUIDs. The instance will
|
||||
be scheduled on a different host than all other instances.
|
||||
|
||||
* `same_host` - (Optional) A list of instance UUIDs. The instance will be
|
||||
scheduled on the same host of those specified.
|
||||
|
||||
* `query` - (Optional) A conditional query that a compute node must pass in
|
||||
order to host an instance.
|
||||
|
||||
* `target_cell` - (Optional) The name of a cell to host the instance.
|
||||
|
||||
* `build_near_host_ip` - (Optional) An IP Address in CIDR form. The instance
|
||||
will be placed on a compute node that is in the same subnet.
|
||||
|
||||
## Attributes Reference
|
||||
|
||||
The following attributes are exported:
|
||||
|
||||
Reference in New Issue
Block a user