PARALLAX

server_group

Manages server groups on the cloudscale.ch IaaS service

Collection: cloudscale_ch.cloud

Full Name: cloudscale_ch.cloud.server_group

Synopsis

Manages server groups on the cloudscale.ch IaaS service

Parameters

NameTypeRequiredDefaultDescription
api_urlstrCloudscale API URL; defaults from CLOUDSCALE_API_URL or https://api.cloudscale.ch/v1.
api_tokenstrAPI bearer token; defaults from CLOUDSCALE_API_TOKEN.
api_timeoutintRequest timeout seconds; defaults from CLOUDSCALE_API_TIMEOUT or 45.
namestrName of the server group. Either I(name) or I(uuid) is required. These options are mutually exclusive.
statestrpresentState of the server group.
tagsdictTags assosiated with the server groups. Set this to C({}) to clear any tags.
typestranti-affinityType of the server group.
uuidstrUUID of the server group. Either I(name) or I(uuid) is required. These options are mutually exclusive.
zonestrZone slug of the server group (e.g. C(lpg1) or C(rma1)).

Example

yaml
- name: Ensure server group exists
  cloudscale_ch.cloud.server_group:
    name: my-name
    type: anti-affinity
    api_token: xxxxxx

- name: Ensure server group in a specific zone
  cloudscale_ch.cloud.server_group:
    name: my-rma-group
    type: anti-affinity
    zone: lpg1
    api_token: xxxxxx

- name: Ensure a server group is absent
  cloudscale_ch.cloud.server_group:
    name: my-name
    state: absent
    api_token: xxxxxx
Search
    ↑ ↓ move↵ openesc close