mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
* 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. |
||
---|---|---|
.. | ||
basics | ||
exoscale | ||
infinity | ||
ldap | ||
__init__.py | ||
cloudflare_dns.py | ||
dnsimple.py | ||
dnsmadeeasy.py | ||
haproxy.py | ||
ipify_facts.py | ||
ipinfoio_facts.py | ||
lldp.py | ||
nmcli.py | ||
nsupdate.py | ||
omapi_host.py | ||
snmp_facts.py |