Support for haproxy
New in version 2014.7.0.
salt.modules.haproxyconn.
disable_server
(name, backend, socket='/var/run/haproxy.sock')¶Disable server in haproxy.
salt '*' haproxy.disable_server db1.example.com mysql
salt.modules.haproxyconn.
enable_server
(name, backend, socket='/var/run/haproxy.sock')¶Enable Server in haproxy
salt '*' haproxy.enable_server web1.example.com www
salt.modules.haproxyconn.
get_weight
(name, backend, socket='/var/run/haproxy.sock')¶Get server weight
salt '*' haproxy.get_weight web1.example.com www
salt.modules.haproxyconn.
list_servers
(backend, socket='/var/run/haproxy.sock', objectify=False)¶List servers in haproxy backend.
salt '*' haproxy.list_servers mysql
salt.modules.haproxyconn.
set_weight
(name, backend, weight=0, socket='/var/run/haproxy.sock')¶Set server weight
salt '*' haproxy.set_weight web1.example.com www 13
salt.modules.haproxyconn.
show_backends
(socket='/var/run/haproxy.sock')¶Show HaProxy Backends
salt '*' haproxy.show_backends
salt.modules.haproxyconn.
show_frontends
(socket='/var/run/haproxy.sock')¶Show HaProxy frontends
salt '*' haproxy.show_frontends