|
|
|
@ -25,17 +25,13 @@ options:
|
|
|
|
|
algorithm:
|
|
|
|
|
description:
|
|
|
|
|
- algorithm for the balancer being created
|
|
|
|
|
choices: ['RANDOM', 'LEAST_CONNECTIONS', 'ROUND_ROBIN', 'WEIGHTED_LEAST_CONNECTIONS', 'WEIGHTED_ROUND_ROBIN']
|
|
|
|
|
choices:
|
|
|
|
|
- RANDOM
|
|
|
|
|
- LEAST_CONNECTIONS
|
|
|
|
|
- ROUND_ROBIN
|
|
|
|
|
- WEIGHTED_LEAST_CONNECTIONS
|
|
|
|
|
- WEIGHTED_ROUND_ROBIN
|
|
|
|
|
default: LEAST_CONNECTIONS
|
|
|
|
|
api_key:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace API key (overrides C(credentials))
|
|
|
|
|
credentials:
|
|
|
|
|
description:
|
|
|
|
|
- File to find the Rackspace credentials in (ignored if C(api_key) and
|
|
|
|
|
C(username) are provided)
|
|
|
|
|
default: null
|
|
|
|
|
aliases: ['creds_file']
|
|
|
|
|
meta:
|
|
|
|
|
description:
|
|
|
|
|
- A hash of metadata to associate with the instance
|
|
|
|
@ -51,16 +47,32 @@ options:
|
|
|
|
|
protocol:
|
|
|
|
|
description:
|
|
|
|
|
- Protocol for the balancer being created
|
|
|
|
|
choices: ['DNS_TCP', 'DNS_UDP' ,'FTP', 'HTTP', 'HTTPS', 'IMAPS', 'IMAPv4', 'LDAP', 'LDAPS', 'MYSQL', 'POP3', 'POP3S', 'SMTP', 'TCP', 'TCP_CLIENT_FIRST', 'UDP', 'UDP_STREAM', 'SFTP']
|
|
|
|
|
choices:
|
|
|
|
|
- DNS_TCP
|
|
|
|
|
- DNS_UDP
|
|
|
|
|
- FTP
|
|
|
|
|
- HTTP
|
|
|
|
|
- HTTPS
|
|
|
|
|
- IMAPS
|
|
|
|
|
- IMAPv4
|
|
|
|
|
- LDAP
|
|
|
|
|
- LDAPS
|
|
|
|
|
- MYSQL
|
|
|
|
|
- POP3
|
|
|
|
|
- POP3S
|
|
|
|
|
- SMTP
|
|
|
|
|
- TCP
|
|
|
|
|
- TCP_CLIENT_FIRST
|
|
|
|
|
- UDP
|
|
|
|
|
- UDP_STREAM
|
|
|
|
|
- SFTP
|
|
|
|
|
default: HTTP
|
|
|
|
|
region:
|
|
|
|
|
description:
|
|
|
|
|
- Region to create the load balancer in
|
|
|
|
|
default: DFW
|
|
|
|
|
state:
|
|
|
|
|
description:
|
|
|
|
|
- Indicate desired state of the resource
|
|
|
|
|
choices: ['present', 'absent']
|
|
|
|
|
choices:
|
|
|
|
|
- present
|
|
|
|
|
- absent
|
|
|
|
|
default: present
|
|
|
|
|
timeout:
|
|
|
|
|
description:
|
|
|
|
@ -69,11 +81,10 @@ options:
|
|
|
|
|
type:
|
|
|
|
|
description:
|
|
|
|
|
- type of interface for the balancer being created
|
|
|
|
|
choices: ['PUBLIC', 'SERVICENET']
|
|
|
|
|
choices:
|
|
|
|
|
- PUBLIC
|
|
|
|
|
- SERVICENET
|
|
|
|
|
default: PUBLIC
|
|
|
|
|
username:
|
|
|
|
|
description:
|
|
|
|
|
- Rackspace username (overrides C(credentials))
|
|
|
|
|
vip_id:
|
|
|
|
|
description:
|
|
|
|
|
- Virtual IP ID to use when creating the load balancer for purposes of
|
|
|
|
@ -83,20 +94,15 @@ options:
|
|
|
|
|
description:
|
|
|
|
|
- wait for the balancer to be in state 'running' before returning
|
|
|
|
|
default: "no"
|
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
|
choices:
|
|
|
|
|
- "yes"
|
|
|
|
|
- "no"
|
|
|
|
|
wait_timeout:
|
|
|
|
|
description:
|
|
|
|
|
- how long before wait gives up, in seconds
|
|
|
|
|
default: 300
|
|
|
|
|
requirements: [ "pyrax" ]
|
|
|
|
|
author: Christopher H. Laco, Matt Martz
|
|
|
|
|
notes:
|
|
|
|
|
- The following environment variables can be used, C(RAX_USERNAME),
|
|
|
|
|
C(RAX_API_KEY), C(RAX_CREDS_FILE), C(RAX_CREDENTIALS), C(RAX_REGION).
|
|
|
|
|
- C(RAX_CREDENTIALS) and C(RAX_CREDS_FILE) points to a credentials file
|
|
|
|
|
appropriate for pyrax. See U(https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#authenticating)
|
|
|
|
|
- C(RAX_USERNAME) and C(RAX_API_KEY) obviate the use of a credentials file
|
|
|
|
|
- C(RAX_REGION) defines a Rackspace Public Cloud region (DFW, ORD, LON, ...)
|
|
|
|
|
extends_documentation_fragment: RACKSPACE
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
|