-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Inspq keycloak user module #6476
Inspq keycloak user module #6476
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Did you look at the part in CONTRIBUTING.md on adding new modules and plugins? |
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.
Thanks for your contribution! I've added some first comments. Please note that you need to add tests as well (that's a requirement for every new module and plugin).
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
plugins/modules/keycloak_user.py
Outdated
returned: on success | ||
type: dict | ||
msg: | ||
description: Message if it is the case. |
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.
If what is the case?
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.
I think this is the only comment left open. Can you please improve the description? Once that's fixed I'll merge.
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
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.
I don't know Keycloak, but I think this looks good for a first release (at least the parts I can judge :) )! So if nobody objects, I'll merge this by the end of this week.
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6645 🤖 @patchback |
* Add Keycloak User Module * keycloak_user refactoring * Add changelog fragment for breaking changes * Fix Copyright for keycloak_user module * Add keycloak_user module to BOTMETA * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Update plugins/modules/keycloak_user.py Updated short description Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Fix keycloak_user module description Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Dedent and use FQCN's for examples in keycloak_user module * Fix examples in keycloak_user module documentation * keycloak_user refactoring * Add changelog fragment for breaking changes * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Fix merge error on keycloak_user module changelogs fragment * Add integration test for keycloak_user module * Fix yamllint errors in keycloak_user integration tests * Add README.md and fix integration tests for keycloak_user module * Add Copyright and license in README.md integration tests keycloak_user module * Update changelogs/fragments/6476-new-keycloak-user.module.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Fix argument_spec auth_username aliases for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Add units tests for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Remove default value for keycloak_user enabled module parameter * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * keycloak_user refactoring * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Dedent and use FQCN's for examples in keycloak_user module * Fix examples in keycloak_user module documentation * keycloak_user refactoring * Add changelog fragment for breaking changes * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Fix merge error on keycloak_user module changelogs fragment * Update changelogs/fragments/6476-new-keycloak-user.module.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Fix argument_spec auth_username aliases for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Remove github Workflow * Remove bugfix from changelog fragment * Fix indentation in examples for keycloak_user module * Fix examples in documentation for keycloak_user module * Remove PR 6476 changelog fragment * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Restore ansible-test.yml * Add msg output and RETURN documentation for keycloak_user module * Fix RETURN documentation for keycloak_user module * Fix msg for keycloak_user module --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 07a5f07)
@elfelip thanks for your contribution! |
) Inspq keycloak user module (#6476) * Add Keycloak User Module * keycloak_user refactoring * Add changelog fragment for breaking changes * Fix Copyright for keycloak_user module * Add keycloak_user module to BOTMETA * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Update plugins/modules/keycloak_user.py Updated short description Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Fix keycloak_user module description Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Dedent and use FQCN's for examples in keycloak_user module * Fix examples in keycloak_user module documentation * keycloak_user refactoring * Add changelog fragment for breaking changes * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Fix merge error on keycloak_user module changelogs fragment * Add integration test for keycloak_user module * Fix yamllint errors in keycloak_user integration tests * Add README.md and fix integration tests for keycloak_user module * Add Copyright and license in README.md integration tests keycloak_user module * Update changelogs/fragments/6476-new-keycloak-user.module.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Fix argument_spec auth_username aliases for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Add units tests for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Remove default value for keycloak_user enabled module parameter * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * keycloak_user refactoring * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Dedent and use FQCN's for examples in keycloak_user module * Fix examples in keycloak_user module documentation * keycloak_user refactoring * Add changelog fragment for breaking changes * Remove ANSIBLE_METADATA and override aliases for auth_username argument spec * Fix merge error on keycloak_user module changelogs fragment * Update changelogs/fragments/6476-new-keycloak-user.module.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Fix argument_spec auth_username aliases for keycloak_user module * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Remove github Workflow * Remove bugfix from changelog fragment * Fix indentation in examples for keycloak_user module * Fix examples in documentation for keycloak_user module * Remove PR 6476 changelog fragment * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_user.py Co-authored-by: Felix Fontein <felix@fontein.de> * Restore ansible-test.yml * Add msg output and RETURN documentation for keycloak_user module * Fix RETURN documentation for keycloak_user module * Fix msg for keycloak_user module --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 07a5f07) Co-authored-by: Philippe Gauthier <philippe.gauthier@inspq.qc.ca>
SUMMARY
This PR add a new Keycloak module to manage users.
ISSUE TYPE
COMPONENT NAME
keycloak_user
ADDITIONAL INFORMATION
This module include attributes and group membership management for users.
The alias username for the auth_username parameter have been removed because it conflicted with the username parameter of the Keycloak user representation