-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New module/plugin documentation fields #68
Comments
Note, rst can include common text in multiple places. UX-wise, that's probably how we should implement this. |
just need to list the properties in each plugin, then representing the 'meaning' in both html/ansible-doc can easily be substituted. We already do this with |
Other properties:
Some of these properties should probably be default unless unset. |
I know The I Word gets used a lot when talking about config management, but I've long said we shouldn't use it with Ansible. Why? Because half the people in IT can't even pronounce it correctly, let alone tell you what it means. It's a typical case of IT trying to sound clever, rather than being helpful (the term is borrowed from maths, and IMHO shoe horned incorrectly into this use case). Ansible's core principle is simplicity, and to that end I've always preferred to use 'plain english'. What we're talking about is desired state. I'd really prefer we didn't use 'idempotent' anywhere, but at the end of the day this is just my opinion and although I can't tell you not to use it, I appeal to your helpful natures and to discard the word from use with Ansible 😄 |
I like this proposal. I'm wondering a bit how it would work in the collection world: would Ansible determine the possible values (and descriptions), or could every collection do that by themselves? Or would there be Ansible default values which could / cannot be changed, and more can be added per collection? |
i would allow 'any values', but if they don't match 'known values' by ansible/docsite, those won't get 'explanation' |
Should we want to add an "orphaned" field, this might be the right place to do it. |
@bcoca created a first implementation in ansible/ansible#73707! 🎉 |
closing as above is merged, this will probably have more added over time, but the basic parts of the proposal have been met. |
Proposal: Properties
Author: Brian Coca <@bcoca> IRC: bcoca
Date: 2017/88/99
Motivation
Clarify and centralize documentation for special behaviours of modules and plugins.
Problems
Solution proposal
New 'properties' field in documentation that is a list of 'special properties and/or behaviors' that this module/plugin exhibit.
in plugin docs:
These then can be mapped to a SINGLE description of what the property means for this plugin, both for ansible-doc and docs website.
Also need to categorize by things that are expected to be supported by default (would have to declare limitation) vs those that are optional (declared in feature).
descriptions.yml:
One variation we can have is define all keywords and allow for a
no_
prefix to be a modifier and a single field, instead of 2.The text was updated successfully, but these errors were encountered: