Manage load balancers using libcloud
codeauthor: Anthony Shaw <anthonyshaw@apache.org>
Apache Libcloud load balancer management for a full list of supported clouds, see http://libcloud.readthedocs.io/en/latest/loadbalancer/supported_providers.html
Clouds include Amazon ELB, ALB, Google, Aliyun, CloudStack, Softlayer
New in version 2018.3.0.
configuration: | This module uses a configuration profile for one or multiple Cloud providers libcloud_loadbalancer:
profile_test1:
driver: gce
key: GOOG0123456789ABCXYZ
secret: mysecret
profile_test2:
driver: alb
key: 12345
secret: mysecret
|
---|
Example:
Using States to deploy a load balancer with extended arguments to specify region
lb_test:
libcloud_loadbalancer.balancer_present:
- name: example
- port: 80
- protocol: http
- profile: google
- ex_region: us-east1
depends: | apache-libcloud |
---|
salt.states.libcloud_loadbalancer.
balancer_absent
(name, profile, **libcloud_kwargs)¶Ensures a load balancer is absent.
Parameters: |
|
---|
salt.states.libcloud_loadbalancer.
balancer_present
(name, port, protocol, profile, algorithm=None, members=None, **libcloud_kwargs)¶Ensures a load balancer is present.
Parameters: |
|
---|
salt.states.libcloud_loadbalancer.
member_absent
(ip, port, balancer_id, profile, **libcloud_kwargs)¶Ensure a load balancer member is absent, based on IP and Port
Parameters: |
|
---|
salt.states.libcloud_loadbalancer.
member_present
(ip, port, balancer_id, profile, **libcloud_kwargs)¶Ensure a load balancer member is present
Parameters: |
|
---|
salt.states.libcloud_loadbalancer.
state_result
(result, message, name, changes=None)¶