Skip to content

Commit

Permalink
Merge pull request #26570 from cachedout/fix_haproxy_docs
Browse files Browse the repository at this point in the history
Fix haproxy docs to be valid
  • Loading branch information
Nicole Thomas committed Aug 21, 2015
2 parents fb5b2d0 + 3710b0b commit 34e6632
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions salt/modules/haproxyconn.py
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 34e6632

Please sign in to comment.