Connection module for Apache Libcloud Storage 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 Storage providers libcloud_loadbalancer:
profile_test1:
driver: gce
key: GOOG0123456789ABCXYZ
secret: mysecret
profile_test2:
driver: alb
key: 12345
secret: mysecret
|
---|---|
depends: | apache-libcloud |
salt.modules.libcloud_loadbalancer.
balancer_attach_member
(balancer_id, ip, port, profile, extra=None, **libcloud_kwargs)¶Add a new member to the load balancer
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_storage.balancer_attach_member balancer123 1.2.3.4 80 profile1
salt.modules.libcloud_loadbalancer.
balancer_detach_member
(balancer_id, member_id, profile, **libcloud_kwargs)¶Add a new member to the load balancer
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_storage.balancer_detach_member balancer123 member123 profile1
salt.modules.libcloud_loadbalancer.
create_balancer
(name, port, protocol, profile, algorithm=None, members=None, **libcloud_kwargs)¶Create a new load balancer instance
Parameters: |
|
---|---|
Returns: | The details of the new balancer |
CLI Example:
salt myminion libcloud_storage.create_balancer my_balancer 80 http profile1
salt.modules.libcloud_loadbalancer.
destroy_balancer
(balancer_id, profile, **libcloud_kwargs)¶Destroy a load balancer
Parameters: |
|
---|---|
Returns: |
|
Return type: |
|
CLI Example:
salt myminion libcloud_storage.destroy_balancer balancer_1 profile1
salt.modules.libcloud_loadbalancer.
extra
(method, profile, **libcloud_kwargs)¶Call an extended method on the driver
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_loadbalancer.extra ex_get_permissions google container_name=my_container object_name=me.jpg --out=yaml
salt.modules.libcloud_loadbalancer.
get_balancer
(balancer_id, profile, **libcloud_kwargs)¶Get the details for a load balancer by ID
Parameters: |
|
---|---|
Returns: | the load balancer details |
CLI Example:
salt myminion libcloud_storage.get_balancer balancer123 profile1
salt.modules.libcloud_loadbalancer.
get_balancer_by_name
(name, profile, **libcloud_kwargs)¶Get the details for a load balancer by name
Parameters: |
|
---|---|
Returns: | the load balancer details |
CLI Example:
salt myminion libcloud_storage.get_balancer_by_name my_balancer profile1
salt.modules.libcloud_loadbalancer.
list_balancer_members
(balancer_id, profile, **libcloud_kwargs)¶List the members of a load balancer
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_storage.list_balancer_members balancer123 profile1
salt.modules.libcloud_loadbalancer.
list_balancers
(profile, **libcloud_kwargs)¶Return a list of load balancers.
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_storage.list_balancers profile1
salt.modules.libcloud_loadbalancer.
list_protocols
(profile, **libcloud_kwargs)¶Return a list of supported protocols.
Parameters: |
|
---|---|
Returns: | a list of supported protocols |
Return type: |
|
CLI Example:
salt myminion libcloud_storage.list_protocols profile1
salt.modules.libcloud_loadbalancer.
list_supported_algorithms
(profile, **libcloud_kwargs)¶Get the supported algorithms for a profile
Parameters: |
|
---|---|
Returns: | The supported algorithms |
CLI Example:
salt myminion libcloud_storage.list_supported_algorithms profile1