community.general/lib/ansible/modules/net_tools
Daniel Moore c342866016 HAProxy: add support for draining connections in maintenace mode (#25887)
* HAProxy: Support waiting for nodes to drain before maint mode

A common task when working with a HAProxy-managed node is to first "drain" it
and then place it into maintenance mode (to be repaired or redeployed).
(Draining such a node consists of preventing new connections from being
established while waiting for active sessions to expire/close.)  This commit
creates a new `drain' parameter for Ansible's HAProxy module, which, when set to
`yes` in conjunction with `state: disabled` and `wait: yes`, causes the module
to attempt to set a node to drain, wait for it to finish draining, and put the
node into maintenance mode.  The action is recorded as a success if these steps
are completed before a maximum wait timeout is reached.

Implements: https://github.com/ansible/ansible-modules-extras/issues/521

Acknowledgments: This is based on user krislindgren's pull request #21420

* Correct how drain option is handled

Previously the `drain` parameter would have no effect, since the `disabled`
state would still immediately place backend servers into maintenance mode.
2017-08-29 07:01:52 -04:00
..
basics Update metadata to 1.1 2017-08-15 23:12:08 -07:00
exoscale exoscale: similar env vars as in cloudstack 2017-08-22 14:43:48 +02:00
infinity add Fusionlayer Infinity ansible module into ansible package (#26855) 2017-08-16 20:11:10 +01:00
ldap Update metadata to 1.1 2017-08-15 23:12:08 -07:00
__init__.py Split modules/network into two parts (#24024) 2017-04-27 16:42:41 +01:00
cloudflare_dns.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
dnsimple.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
dnsmadeeasy.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
haproxy.py HAProxy: add support for draining connections in maintenace mode (#25887) 2017-08-29 07:01:52 -04:00
ipify_facts.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
ipinfoio_facts.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
lldp.py Updates lldp module example to use ifname instead of ifalias (#23064) 2017-08-17 15:38:30 -04:00
nmcli.py nmcli: Changed parameter ordering in create_connection_bond (#23571) 2017-08-17 14:48:58 -04:00
nsupdate.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
omapi_host.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
snmp_facts.py snmp_facts: Fix typo in example docs (#28689) 2017-08-26 11:09:02 +02:00