Runner to provide F5 Load Balancer functionality
depends: |
|
---|---|
configuration: |
In order to connect to a F5 Load Balancer, you must specify in the Salt master configuration the currently available load balancers load_balancers:
bigip1.example.com
username: admin
password: secret
bigip2.example.com:
username: admin
password: secret
|
salt.runners.f5.
F5Mgmt
(lb, username, password)
add_pool_member
(name, port, pool_name)
Add a node to a pool
check_member_pool
(member, pool_name)
Check a pool member exists in a specific pool
check_pool
(name)
Check to see if a pool exists
check_virtualserver
(name)
Check to see if a virtual server exists
create_pool
(name, method='ROUND_ROBIN')
Create a pool on the F5 load balancer
create_vs
(name, ip, port, protocol, profile, pool_name)
Create a virtual server
lbmethods
()
List all the load balancer methods
Add a node to a pool
CLI Examples:
salt-run f5.add_pool_member load_balancer 10.0.0.1 80 my_pool
Check a pool member exists in a specific pool
CLI Examples:
salt-run f5.check_member_pool load_balancer 10.0.0.1 my_pool
Check to see if a pool exists
CLI Examples:
salt-run f5.check_pool load_balancer pool_name
Check to see if a virtual server exists
CLI Examples:
salt-run f5.check_virtualserver load_balancer virtual_server
Create a pool on the F5 load balancer
CLI Examples:
salt-run f5.create_pool load_balancer pool_name loadbalance_method salt-run f5.create_pool load_balancer my_pool ROUND_ROBIN
Create a virtual server
CLI Examples:
salt-run f5.create_vs lbalancer vs_name 10.0.0.1 80 tcp http poolname
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.f5.html