22.16.75. salt.modules.haproxyconn

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.

name
Server to disable
backend
haproxy backend
socket
haproxy stats socket
salt '*' haproxy.disable_server db1.example.com mysql
salt.modules.haproxyconn.enable_server(name, backend, socket='/var/run/haproxy.sock')

Enable Server in haproxy

name
Server to enable
backend
haproxy backend
socket
haproxy stats socket
salt '*' haproxy.enable_server web1.example.com www
salt.modules.haproxyconn.get_weight(name, backend, socket='/var/run/haproxy.sock')

Get server weight

name
Server name
backend
haproxy backend
socket
haproxy stats socket
salt '*' haproxy.get_weight web1.example.com www
salt.modules.haproxyconn.list_servers(backend, socket='/var/run/haproxy.sock')

List servers in haproxy backend.

backend
haproxy backend
socket
haproxy stats socket
salt '*' haproxy.list_servers mysql
salt.modules.haproxyconn.set_weight(name, backend, weight=0, socket='/var/run/haproxy.sock')

Set server weight

name
Server name
backend
haproxy backend
weight
Server Weight
socket
haproxy stats socket
salt '*' haproxy.set_weight web1.example.com www 13
salt.modules.haproxyconn.show_backends(socket='/var/run/haproxy.sock')

Show HaProxy Backends

socket
haproxy stats socket
salt '*' haproxy.show_backends
salt.modules.haproxyconn.show_frontends(socket='/var/run/haproxy.sock')

Show HaProxy frontends

socket
haproxy stats socket
salt '*' haproxy.show_frontends

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.74. salt.modules.hadoop

Next topic

22.16.76. salt.modules.hashutil

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.