-
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
Add action group for keycloak #9284
Conversation
This will allows keycloak authentication details to be set as a module_defaults rather than repeated on each task
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! Please add a changelog fragment.
Also please add a documentation fragment to plugins/doc_fragments/keycloak.py
, similar to ACTIONGROUP_PROXMOX
in plugins/doc_fragments/proxmox.py
, and use it in the modules by updating extends_documentation_fragment
and attributes
as follows:
extends_documentation_fragment:
- community.general.keycloak.actiongroup_keycloak
attributes:
action_group:
version_added: 11.0.0
This comment was marked as outdated.
This comment was marked as outdated.
extends_documentation_fragment: | ||
- community.general.keycloak.actiongroup_keycloak | ||
- community.general.attributes | ||
- community.general.attributes.info_module |
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.
Hmm, this module is exceptional in that it does not use the docs fragment and the argument spec from the module utils. Basically it only has the auth_keycloak_url
and validate_certs
options that are shared by the other modules. For that reason it should probably be excluded from the action group, since otherwise you cannot use the action group when using this module (except for these two options, but not for all other shared ones).
It's probably best to skip it here, and once someone makes the module use the module utils' argument spec and docs fragment, to then also add it to the action group.
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.
good catch, excluded this one now
This comment was marked as outdated.
This comment was marked as outdated.
…ame set of base parameters
Co-authored-by: Felix Fontein <felix@fontein.de>
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #9340 🤖 @patchback |
* Create group for keycloak This will allows keycloak authentication details to be set as a module_defaults rather than repeated on each task * add documentation to keycloak modules to note creation of action_group * add changelog for keycloak action_group creation * exclude keycloak_realm_info from action group, as it does not share same set of base parameters * fix formatting on changelog entry for adding Keycloak action group Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 28f36ae)
@cnorthwood thanks for your contribution! |
…#9340) Add action group for keycloak (#9284) * Create group for keycloak This will allows keycloak authentication details to be set as a module_defaults rather than repeated on each task * add documentation to keycloak modules to note creation of action_group * add changelog for keycloak action_group creation * exclude keycloak_realm_info from action group, as it does not share same set of base parameters * fix formatting on changelog entry for adding Keycloak action group Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 28f36ae) Co-authored-by: Chris Northwood <cnorthwood@users.noreply.github.com>
* Add sanity test for action groups. * Fix interpolation. * Fix message. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Improve regex. * Add entry for new 'keycloak' action group. Ref: #9284 --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Add sanity test for action groups. * Fix interpolation. * Fix message. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Improve regex. * Add entry for new 'keycloak' action group. Ref: #9284 --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> (cherry picked from commit d5237ee)
…oups (#9343) Add sanity test for action groups (#9294) * Add sanity test for action groups. * Fix interpolation. * Fix message. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Improve regex. * Add entry for new 'keycloak' action group. Ref: #9284 --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> (cherry picked from commit d5237ee) Co-authored-by: Felix Fontein <felix@fontein.de>
* Create group for keycloak This will allows keycloak authentication details to be set as a module_defaults rather than repeated on each task * add documentation to keycloak modules to note creation of action_group * add changelog for keycloak action_group creation * exclude keycloak_realm_info from action group, as it does not share same set of base parameters * fix formatting on changelog entry for adding Keycloak action group Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
* Add sanity test for action groups. * Fix interpolation. * Fix message. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Improve regex. * Add entry for new 'keycloak' action group. Ref: ansible-collections#9284 --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
SUMMARY
Add an action group for all the keycloak modules. This will allows keycloak authentication details to be set as a module_defaults rather than repeated on each task
ISSUE TYPE
COMPONENT NAME
keycloak
ADDITIONAL INFORMATION