-
Notifications
You must be signed in to change notification settings - Fork 335
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
Add new module for AD Users #402
Add new module for AD Users #402
Conversation
@coleneubauer Thank you for your contribution. This module is used to retrieve the Azure Recovery Services Vault policy. Can you add a module to manage the Azure Recovery Services Vault policy (azure_rm_aduser.py)? Use to implement the creation and deletion of a service library backup policy. Thank you very much! |
@Fred-sun I think you may have mixed up my PRs. This is unrelated to the Azure Recovery Services Vault Backup Policy. That PR has both an info module and a management module. This one only is an info module to read AD User account information. I don't have a current business need for the management module and would like to not write it at this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coleneubauer Add a use case that successfully gets the AdUser information to the use case. Thank you very much!
Co-authored-by: Fred-sun <[email protected]>
Co-authored-by: Fred-sun <[email protected]>
@Fred-sun The additional module has been added as requested. |
@coleneubauer Thanks for your update! I will test and push for merge! |
…re into ad-user-info-module-new
@haiyuazhang The metadata blocks have been removed. |
Co-authored-by: Fred-sun <[email protected]>
add space after commit from reviewer suggeststion
add space after commit from reviewer suggeststion
@Fred-sun The metaclass line was added as suggested |
@coleneubauer Do you execute your tests/integration/the targets/azure_rm_aduser/tasks/main.yml? Can you share your test results? Thank you very much! |
@Fred-sun I don't know how to execute the tests directly. I could not find in documentation how this was done and made the assumption this was intentional. What I do for the tests is copy the test to a local playbook, write a task at the top defining existing vars, and run the playbook. When I do it this way the results are that all the tasks pass. |
The convention for a single ansible module is to manage a single resource instance. I checked your "CRUD" functions, seems they also support batch mode. It's bettor to fallback to the normal one module one resource instance way. Besides, The idempotency test is absent in the tests. I test the idempotency of the module locally, it doesn't work. |
@haiyuazhang "The convention for a single ansible module is to manage a single resource instance. I checked your "CRUD" functions, seems they also support batch mode. It's bettor to fallback to the normal one module one resource instance way" |
If it won't take you too much effort, I suggest that we remove batch support from the module. Since simple loop in playbook can serve the same purpose. Keeping "the style" consistent among the modules in this collection might be a good practice. |
Sounds good, thanks for the feedback. I should be able to update this sometime this week. |
SUMMARY
Addition of a module to return ad user information and create, update, or delete a user.
ISSUE TYPE
COMPONENT NAME
azure_rm_aduser_info
ADDITIONAL INFORMATION
This is the addition of a new module. The module supports getting information for an AD user or multiple users. The module supports multiple parameters for defining the scope of users to return as well as a direct OData filter for more complex queries.