github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/openstack/r/compute_servergroup_v2.html.markdown (about)

     1  ---
     2  layout: "openstack"
     3  page_title: "OpenStack: openstack_compute_servergroup_v2"
     4  sidebar_current: "docs-openstack-resource-compute-servergroup-v2"
     5  description: |-
     6    Manages a V2 Server Group resource within OpenStack.
     7  ---
     8  
     9  # openstack\_compute\_servergroup_v2
    10  
    11  Manages a V2 Server Group resource within OpenStack.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "openstack_compute_servergroup_v2" "test-sg" {
    17    name = "my-sg"
    18    policies = ["anti-affinity"]
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `region` - (Required) The region in which to obtain the V2 Compute client.
    27      If omitted, the `OS_REGION_NAME` environment variable is used. Changing
    28      this creates a new server group.
    29  
    30  * `name` - (Required) A unique name for the server group. Changing this creates
    31      a new server group.
    32  
    33  * `policies` - (Required) The set of policies for the server group. Only two
    34      two policies are available right now, and both are mutually exclusive. See
    35      the Policies section for more information. Changing this creates a new
    36      server group.
    37  
    38  ## Policies
    39  
    40  * `affinity` - All instances/servers launched in this group will be hosted on
    41      the same compute node.
    42  
    43  * `anti-affinity` - All instances/servers launched in this group will be
    44      hosted on different compute nodes.
    45  
    46  ## Attributes Reference
    47  
    48  The following attributes are exported:
    49  
    50  * `region` - See Argument Reference above.
    51  * `name` - See Argument Reference above.
    52  * `policies` - See Argument Reference above.
    53  * `members` - The instances that are part of this server group.