ngine_io.cloudstack.lb_internal_member module – Manages internal load balancer members on Apache CloudStack based clouds.
Note
This module is part of the ngine_io.cloudstack collection (version 3.3.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install ngine_io.cloudstack.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: ngine_io.cloudstack.lb_internal_member.
New in ngine_io.cloudstack 3.3.0
Synopsis
Add and remove instances to and from an internal load balancer created by ngine_io.cloudstack.lb_internal.
For public load balancer rules use ngine_io.cloudstack.lb_rule_member instead.
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.6
cs >= 0.9.0
Parameters
Parameter |
Comments |
|---|---|
Account the internal load balancer is related to. |
|
HTTP method used to query the API endpoint. If not given, the Choices:
|
|
API key of the CloudStack API. If not given, the |
|
Secret key of the CloudStack API. If not set, the |
|
HTTP timeout in seconds. If not given, the Default: |
|
URL of the CloudStack API e.g. https://cloud.example.com/client/api. If not given, the |
|
Verify CA authority cert file. If not given, the |
|
Domain the internal load balancer is related to. |
|
Name of the internal load balancer the instances are assigned to. |
|
Name of the VPC tier the internal load balancer balances traffic to. |
|
Poll async jobs until job has finished. Choices:
|
|
Name of the project the internal load balancer is related to. |
|
Whether the instances should be assigned to or removed from the internal load balancer. Choices:
|
|
If If not given, the This should only be used on personally controlled sites using self-signed certificates. Choices:
|
|
List of instance names the internal load balancer balances traffic to. |
|
Name of the VPC the network belongs to. |
|
Name of the zone the internal load balancer belongs to. |
Notes
Note
The instances must be members of the same VPC tier the internal load balancer balances traffic to.
The
InternalLbVmsystem instance is only deployed by CloudStack once the first member has been assigned. It can be managed using ngine_io.cloudstack.internal_lb_vm.A detailed guide about cloudstack modules can be found in the CloudStack Cloud Guide.
This module supports check mode.
Examples
- name: Ensure instances are assigned to the internal load balancer
ngine_io.cloudstack.lb_internal_member:
name: web-ilb
vpc: my-vpc
network: web-tier
zone: zone01
vms:
- web-01
- web-02
- name: Ensure an instance is removed from the internal load balancer
ngine_io.cloudstack.lb_internal_member:
name: web-ilb
vpc: my-vpc
network: web-tier
zone: zone01
vm: web-02
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Account the internal load balancer is related to. Returned: when available Sample: |
|
Load balancing algorithm used. Returned: success Sample: |
|
Domain the internal load balancer is related to. Returned: when available Sample: |
|
UUID of the internal load balancer. Returned: success Sample: |
|
Port on the balanced instances traffic is forwarded to. Returned: success Sample: |
|
Name of the internal load balancer. Returned: success Sample: |
|
UUID of the network the internal load balancer balances traffic to. Returned: success Sample: |
|
Name of the project the internal load balancer is related to. Returned: when available Sample: |
|
Source IP address of the internal load balancer. Returned: success Sample: |
|
Source port the internal load balancer listens on. Returned: success Sample: |
|
List of instance names assigned to the internal load balancer. Returned: success Sample: |
|
Name of the zone the internal load balancer belongs to. Returned: success Sample: |