-
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
Proposal: Module names should be singular #10
Comments
How many modules are affected by this @abadger ? My analysis says:
|
i can see several exceptions in that list, mostly cause of common names or tools 'logentries' is a company for example |
Yeah, there shouldn't be too many current modules affected by this. As bcoca notes, logentries is a company, macports is the name of a project, pam_limits is the proper name of a PAM module. Here's the quick list of current modules I found that should get singular aliases:
This was brought up in a new modules meeting where it was questioned whether a new module should take plural or singular form. |
|
Sorry I left this so long... here's a new list. Please propose things to remove from the list:
|
This is now documented (cia ansible/ansible#21021) It will appear on http://docs.ansible.com/ansible/dev_guide/developing_modules_documenting.html when docs are next pushed live |
How to rename a module with an alias to the old name:
|
Current list of affected modules:
Here is the regexp file I'm using as a filter:
Will submit an initial PR with a few changed shortly. |
|
Related to this proposal: ansible/proposals#10
* First batch of modules renamed from plural to singular Related to this proposal: ansible/proposals#10 * Emit rename deprication warning * Update legacy-files.txt and skip.txt to reflect new names
@samdoran I dont mind changing the f5 module mentioned. it should not have any real existing users yet because it is a partial for a larger HA feature which is not fully implemented. I do have an enhancement to the regex to be made though, there is an upcoming f5 module to deal with HTTPS related monitors, so that plurality will want to be noted (at least for f5) so that it is not flagged as it is a proper protocol. |
I will send a PR for the f5 module mentioned |
@caphrim007 Thanks! Much appreciated. |
@samdoran f5 can now be removed from the list |
this was 'done' for existing modules, now with collections this becomes a optional rule to follow by their authors. |
Proposal: Module names should be singular
Author: Toshio Kuratomi @abadger
Date: 2016/04/19
Motivation
We want to make it easier for users to remember the names of modules.
Problems
it can be hard to remember names of modules when some of them are plural and some are singular. It gets even harder when modules are multiword: Was that module named vmware_vmkernels_ip_config.py, vmware_vmkernel_ip_configs.py, vmware_vmkernels_ip_configs.py, or vmware_vmkernel_ip_config.py?
It can also be hard to remember a name when there's inconsistency inside of a group of modules. This can be made even harder when a module belongs to several groups. We might have docker_images.py and therefore someone might look for docker_files.py. A different person might be using the file.py module and therefore look for docker_file.py.
Solution proposal
_files
, suffix.Documentation
We should add documentation of this requirement to the Module Checklist in docsite/rst/developing_modules.rst
Alternatives
The text was updated successfully, but these errors were encountered: