ansible / proposals

Repository for sharing and tracking progress on enhancement proposals for Ansible.
Creative Commons Zero v1.0 Universal
93 stars 19 forks source link

Allow documenting option deprecation #65

Closed bcoca closed 6 years ago

bcoca commented 7 years ago

Proposal: deprecated doc key for options

Author: Brian Coca <@bcoca> IRC: bcoca

Date: 2017/06/-1

Motivation

There is no way to document the deprecation of an option in plugins.

Problems

Will allow authors to document deprecation of options.

Solution proposal

A deprecated key that is composed of the following:

deprecated:
     why: reason for deprecation
     version: version in which this option is removed
     alternatives: description of alternatives to use

Dependencies (optional)

Doc validator needs to permit

gundalow commented 7 years ago

Links to things that will need updating

Needs to work for suboptions

gundalow commented 7 years ago

Discussed in Core meeting 1st June 2017

The above also believe that the module level deprecations should move to using this

Docs also need updating to point out how to deprecate options in argspec

gundalow commented 7 years ago

Once merged the the following modules will need updating to make use of it:

Feel free to edit this comment to add other modules to the list

gundalow commented 7 years ago

Discussed in Core meeting *st June 2017 +1 from Core thaumos ryansb jctanner gundalow, sivel, shertel +1 from community: dminca

RESULT: Agreed

bcoca may do this as part of the Ansible config project

bcoca commented 6 years ago

released in 2.4: infrastructure to support it and started using in plugins and config definitions/entries, new module deprecation should use the new format.