Skip to content

Commit

Permalink
Fix haproxy docs to be valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Aug 21, 2015
1 parent da65e60 commit 3710b0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions salt/modules/haproxyconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def list_servers(backend, socket='/var/run/haproxy.sock', objectify=False):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.list_servers mysql
Expand All @@ -77,6 +79,8 @@ def enable_server(name, backend, socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.enable_server web1.example.com www
Expand All @@ -100,6 +104,8 @@ def disable_server(name, backend, socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.disable_server db1.example.com mysql
Expand All @@ -123,6 +129,8 @@ def get_weight(name, backend, socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.get_weight web1.example.com www
Expand All @@ -148,6 +156,8 @@ def set_weight(name, backend, weight=0, socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.set_weight web1.example.com www 13
Expand All @@ -165,6 +175,8 @@ def show_frontends(socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.show_frontends
Expand All @@ -181,6 +193,8 @@ def show_backends(socket='/var/run/haproxy.sock'):
socket
haproxy stats socket
CLI Example:
.. code-block:: bash
salt '*' haproxy.show_backends
Expand Down

0 comments on commit 3710b0b

Please sign in to comment.