1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/modules/clustering
John R Barker a23c95023b
Module deprecation: docs, scheme and tests (#34100)
Enforce module deprecation.
After module has reached the end of it's deprecation cycle we will replace it with a docs stub.

* Replace deprecated modules with docs-only sub
* Use of deprecated past deprecation cycle gives meaningful message (see examples below)
* Enforce documentation.deprecation dict via `schema.py`
* Update `ansible-doc` and web docs to display documentation.deprecation
* Document that structure in `dev_guide`
* Ensure that all modules starting with `_` have a `deprecation:` block
* Ensure `deprecation:` block is only used on modules that start with `_`
* `removed_in` A string which represents when this module needs **deleting**
* CHANGELOG.md and porting_guide_2.5.rst list removed modules as well as alternatives
* CHANGELOG.md links to porting guide index

To ensure that meaningful messages are given to the user if they try to use a module at the end of it's deprecation cycle we enforce the module to contain:
```python
if __name__ == '__main__':
    removed_module()
```
2018-01-30 12:23:52 +00:00
..
k8s Module deprecation: docs, scheme and tests (#34100) 2018-01-30 12:23:52 +00:00
openshift Module deprecation: docs, scheme and tests (#34100) 2018-01-30 12:23:52 +00:00
__init__.py
consul.py consul + Python 3.5 (#23935) 2017-09-09 18:41:08 -07:00
consul_acl.py consul_acl: fix broken import (#33729) 2017-12-15 16:06:11 -06:00
consul_kv.py consul_kv: PEP8 compliancy and doc fixes (#32340) 2017-10-31 22:27:56 -04:00
consul_session.py consul_session: PEP8 compliancy and documentation changes (#33000) 2017-11-17 21:48:36 +01:00
etcd3.py New module etcd3 (#35053) 2018-01-29 11:49:30 +01:00
pacemaker_cluster.py pacemaker_cluster: PEP8 compliancy and doc changes (#33001) 2017-11-17 20:34:29 +01:00
znode.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00