community.general/lib/ansible
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
..
cli Fix config value type for VAULT_IDENTITY_LIST (#28678) 2017-08-28 10:13:14 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config add toggle to controle inventory parse as error (#28729) 2017-08-28 17:17:19 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor executor stats and task_executor pep8 error (#23651) 2017-08-18 08:55:48 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory add toggle to controle inventory parse as error (#28729) 2017-08-28 17:17:19 -04:00
module_utils Added powershell SID utils for shared common code (#27091) 2017-08-28 19:15:58 -04:00
modules HAProxy: add support for draining connections in maintenace mode (#25887) 2017-08-29 07:01:52 -04:00
parsing Fixes #22335: Adds filename extension to tempfile for Vault 2017-08-28 11:01:04 -04:00
playbook correctly map to connection_user from remote_user in play_context (#28676) 2017-08-25 15:53:25 -04:00
plugins added keyed_group construction (#28578) 2017-08-25 22:00:07 -04:00
template Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
utils skip all hidden keys, allow exclude list 2017-08-28 12:56:14 -04:00
vars make groups magic var dependant on inventory (#28677) 2017-08-28 17:21:11 -04:00
__init__.py
constants.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00