Skip to content
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

VMware: Improve module vmware_local_user_facts #47868

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

ckotte
Copy link
Contributor

@ckotte ckotte commented Oct 31, 2018

SUMMARY
  • add check mode support
  • add assigned role to the output
  • change output to match vmware_local_user_manager output (PR VMware: Improve module vmware_local_user_manager #47866)
    • change principal to user_name
    • change full_name to user_description
    • change user_group to group
    • change user_description to description
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

vmware_local_user_facts

ANSIBLE VERSION
2.8-devel
ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Oct 31, 2018

Hi @ckotte, thank you for submitting this pull-request!

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Oct 31, 2018

@ansibot
Copy link
Contributor

ansibot commented Oct 31, 2018

@ckotte, just so you are aware we have a dedicated Working Group for vmware.
You can find other people interested in this in #ansible-vmware on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 cloud community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community labels Oct 31, 2018
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Nov 1, 2018
@@ -50,56 +52,108 @@
type: dict
sample: [
{
"full_name": "Administrator",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are changing facts keys here, we should add older values as well as new values. Because, removing old values will break playbooks and roles which are already written by user of this modules.
Ideally we should

  1. Add a note in notes section stating these values will be deprecated after 4 versions.
  2. Add a porting guide

Let me know if it makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a bit overkill? You couldn't assign roles to users before #47866. Anyway. How can you combine two lists without messing the whole output?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I understand it is a bit overkill, but consider from UX point of view. People already using this module will be surprised to see failing PB which were already working.

You can keep -

        {
            "full_name": "DCUI User",
            "principal": "dcui",
            "user_group": false,
            "role": "admin",
            "description": "DCUI User",
            "group": false,
            "user_id": 100,
            "user_shell_access": false
            "user_name": "dcui",
            "shell_access": false
        },

I aware that information is redundant but that will atleast not break playbooks. We will add porting guide note here and a note in documentation stating that these values will be deprecated after 4 release i.e. 2.12

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added similar note in porting guide for vmware_local_role_facts here = https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/porting_guides/porting_guide_2.8.rst#id12

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. I thought this is the PR with the dict to list change. I added the old names and notes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you want to write in the port guide? I think it's sufficient if we add a note later in 2.12 that the properties are deprecated.

* add check mode support
* add assigned role to the output
* change output to match vmware_local_user_manager output
  * change principal to user_name
  * change full_name to user_description
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Nov 13, 2018
@Akasurde Akasurde merged commit 3a33969 into ansible:devel Nov 13, 2018
@Akasurde
Copy link
Member

@ckotte Thanks for the contribution.

mjmayer pushed a commit to mjmayer/ansible that referenced this pull request Nov 30, 2018
* add check mode support
* add assigned role to the output
* change output to match vmware_local_user_manager output
* change principal to user_name
* change full_name to user_description
Tomorrow9 pushed a commit to Tomorrow9/ansible that referenced this pull request Dec 4, 2018
* add check mode support
* add assigned role to the output
* change output to match vmware_local_user_manager output
* change principal to user_name
* change full_name to user_description
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 cloud community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants