1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add attributes to ipa and keycloak modules (#5950)

Add attributes to ipa and keycloak modules.
This commit is contained in:
Felix Fontein 2023-02-24 09:25:31 +01:00 committed by GitHub
parent 3ec2fde2c6
commit 18a6bdd6aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 228 additions and 53 deletions

View file

@ -13,7 +13,12 @@ module: ipa_config
author: Fran Fitzpatrick (@fxfitz) author: Fran Fitzpatrick (@fxfitz)
short_description: Manage Global FreeIPA Configuration Settings short_description: Manage Global FreeIPA Configuration Settings
description: description:
- Modify global configuration settings of a FreeIPA Server. - Modify global configuration settings of a FreeIPA Server.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
ipaconfigstring: ipaconfigstring:
description: Extra hashes to generate in password plug-in. description: Extra hashes to generate in password plug-in.
@ -93,7 +98,8 @@ options:
elements: str elements: str
version_added: '2.5.0' version_added: '2.5.0'
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,7 +14,12 @@ module: ipa_dnsrecord
author: Abhijeet Kasurde (@Akasurde) author: Abhijeet Kasurde (@Akasurde)
short_description: Manage FreeIPA DNS records short_description: Manage FreeIPA DNS records
description: description:
- Add, modify and delete an IPA DNS Record using IPA API. - Add, modify and delete an IPA DNS Record using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
zone_name: zone_name:
description: description:
@ -78,7 +83,8 @@ options:
choices: ["absent", "present"] choices: ["absent", "present"]
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,7 +14,12 @@ module: ipa_dnszone
author: Fran Fitzpatrick (@fxfitz) author: Fran Fitzpatrick (@fxfitz)
short_description: Manage FreeIPA DNS Zones short_description: Manage FreeIPA DNS Zones
description: description:
- Add and delete an IPA DNS Zones using IPA API - Add and delete an IPA DNS Zones using IPA API
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
zone_name: zone_name:
description: description:
@ -37,7 +42,8 @@ options:
type: bool type: bool
version_added: 4.3.0 version_added: 4.3.0
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -13,7 +13,12 @@ module: ipa_group
author: Thomas Krahn (@Nosmoht) author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA group short_description: Manage FreeIPA group
description: description:
- Add, modify and delete group within IPA server - Add, modify and delete group within IPA server
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
append: append:
description: description:
@ -82,7 +87,8 @@ options:
choices: ["absent", "present"] choices: ["absent", "present"]
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -13,7 +13,12 @@ module: ipa_hbacrule
author: Thomas Krahn (@Nosmoht) author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA HBAC rule short_description: Manage FreeIPA HBAC rule
description: description:
- Add, modify or delete an IPA HBAC rule using IPA API. - Add, modify or delete an IPA HBAC rule using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -104,7 +109,8 @@ options:
type: list type: list
elements: str elements: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -13,7 +13,12 @@ module: ipa_host
author: Thomas Krahn (@Nosmoht) author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA host short_description: Manage FreeIPA host
description: description:
- Add, modify and delete an IPA host using IPA API. - Add, modify and delete an IPA host using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
fqdn: fqdn:
description: description:
@ -82,7 +87,8 @@ options:
description: Generate a random password to be used in bulk enrollment. description: Generate a random password to be used in bulk enrollment.
type: bool type: bool
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -13,7 +13,12 @@ module: ipa_hostgroup
author: Thomas Krahn (@Nosmoht) author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA host-group short_description: Manage FreeIPA host-group
description: description:
- Add, modify and delete an IPA host-group using IPA API. - Add, modify and delete an IPA host-group using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -49,7 +54,8 @@ options:
choices: ["absent", "disabled", "enabled", "present"] choices: ["absent", "disabled", "enabled", "present"]
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -15,7 +15,12 @@ author: justchris1 (@justchris1)
short_description: Manage FreeIPA OTP Configuration Settings short_description: Manage FreeIPA OTP Configuration Settings
version_added: 2.5.0 version_added: 2.5.0
description: description:
- Modify global configuration settings of a FreeIPA Server with respect to OTP (One Time Passwords). - Modify global configuration settings of a FreeIPA Server with respect to OTP (One Time Passwords).
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
ipatokentotpauthwindow: ipatokentotpauthwindow:
description: TOTP authentication window in seconds. description: TOTP authentication window in seconds.
@ -34,7 +39,8 @@ options:
aliases: ["hotpsyncwindow"] aliases: ["hotpsyncwindow"]
type: int type: int
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,7 +14,12 @@ author: justchris1 (@justchris1)
short_description: Manage FreeIPA OTPs short_description: Manage FreeIPA OTPs
version_added: 2.5.0 version_added: 2.5.0
description: description:
- Add, modify, and delete One Time Passwords in IPA. - Add, modify, and delete One Time Passwords in IPA.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
uniqueid: uniqueid:
description: Unique ID of the token in IPA. description: Unique ID of the token in IPA.
@ -100,7 +105,8 @@ options:
- "B(Note:) Cannot be modified after OTP is created." - "B(Note:) Cannot be modified after OTP is created."
type: int type: int
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''
EXAMPLES = r''' EXAMPLES = r'''

View file

@ -15,6 +15,11 @@ short_description: Manage FreeIPA password policies
description: description:
- Add, modify, or delete a password policy using the IPA API. - Add, modify, or delete a password policy using the IPA API.
version_added: 2.0.0 version_added: 2.0.0
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
group: group:
description: description:
@ -60,9 +65,8 @@ options:
description: Period (in seconds) for which users are locked out. description: Period (in seconds) for which users are locked out.
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
notes: - community.general.attributes
- Supports C(check_mode).
''' '''
EXAMPLES = r''' EXAMPLES = r'''

View file

@ -14,6 +14,11 @@ author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA role short_description: Manage FreeIPA role
description: description:
- Add, modify and delete a role within FreeIPA server using FreeIPA API. - Add, modify and delete a role within FreeIPA server using FreeIPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -79,7 +84,8 @@ options:
type: list type: list
elements: str elements: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Cédric Parent (@cprh)
short_description: Manage FreeIPA service short_description: Manage FreeIPA service
description: description:
- Add and delete an IPA service using IPA API. - Add and delete an IPA service using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
krbcanonicalname: krbcanonicalname:
description: description:
@ -48,7 +53,8 @@ options:
choices: ["absent", "present"] choices: ["absent", "present"]
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Abhijeet Kasurde (@Akasurde)
short_description: Manage FreeIPA Lightweight Sub Certificate Authorities short_description: Manage FreeIPA Lightweight Sub Certificate Authorities
description: description:
- Add, modify, enable, disable and delete an IPA Lightweight Sub Certificate Authorities using IPA API. - Add, modify, enable, disable and delete an IPA Lightweight Sub Certificate Authorities using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
subca_name: subca_name:
description: description:
@ -39,7 +44,8 @@ options:
choices: ["absent", "disabled", "enabled", "present"] choices: ["absent", "disabled", "enabled", "present"]
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA sudo command short_description: Manage FreeIPA sudo command
description: description:
- Add, modify or delete sudo command within FreeIPA server using FreeIPA API. - Add, modify or delete sudo command within FreeIPA server using FreeIPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
sudocmd: sudocmd:
description: description:
@ -31,7 +36,8 @@ options:
choices: ['absent', 'disabled', 'enabled', 'present'] choices: ['absent', 'disabled', 'enabled', 'present']
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA sudo command group short_description: Manage FreeIPA sudo command group
description: description:
- Add, modify or delete sudo command group within IPA server using IPA API. - Add, modify or delete sudo command group within IPA server using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -38,7 +43,8 @@ options:
type: list type: list
elements: str elements: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA sudo rule short_description: Manage FreeIPA sudo rule
description: description:
- Add, modify or delete sudo rule within IPA server using IPA API. - Add, modify or delete sudo rule within IPA server using IPA API.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -115,7 +120,8 @@ options:
choices: ['absent', 'disabled', 'enabled', 'present'] choices: ['absent', 'disabled', 'enabled', 'present']
type: str type: str
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -14,6 +14,11 @@ author: Thomas Krahn (@Nosmoht)
short_description: Manage FreeIPA users short_description: Manage FreeIPA users
description: description:
- Add, modify and delete user within IPA server. - Add, modify and delete user within IPA server.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
displayname: displayname:
description: Display name. description: Display name.
@ -99,7 +104,8 @@ options:
elements: str elements: str
version_added: '1.2.0' version_added: '1.2.0'
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
requirements: requirements:
- base64 - base64

View file

@ -15,6 +15,11 @@ short_description: Manage FreeIPA vaults
description: description:
- Add, modify and delete vaults and secret vaults. - Add, modify and delete vaults and secret vaults.
- KRA service should be enabled to use this module. - KRA service should be enabled to use this module.
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
cn: cn:
description: description:
@ -74,7 +79,8 @@ options:
type: bool type: bool
default: true default: true
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation
- community.general.attributes
''' '''

View file

@ -19,6 +19,12 @@ description:
version_added: "3.3.0" version_added: "3.3.0"
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
realm: realm:
description: description:
@ -86,7 +92,8 @@ options:
- If C(true), allows to remove the authentication flow and recreate it. - If C(true), allows to remove the authentication flow and recreate it.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Philippe Gauthier (@elfelip) - Philippe Gauthier (@elfelip)

View file

@ -30,6 +30,12 @@ description:
SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful. SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful.
If you do not specify a setting, usually a sensible default is chosen. If you do not specify a setting, usually a sensible default is chosen.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
description: description:
@ -539,7 +545,8 @@ options:
client and signed by its key, base64-encoded. client and signed by its key, base64-encoded.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Eike Frost (@eikef) - Eike Frost (@eikef)

View file

@ -33,6 +33,11 @@ description:
- When updating a client_rolemapping, where possible provide the role ID to the module. This removes a lookup - When updating a client_rolemapping, where possible provide the role ID to the module. This removes a lookup
to the API to translate the name into the role ID. to the API to translate the name into the role ID.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -97,8 +102,8 @@ options:
providing it will reduce the number of API calls required. providing it will reduce the number of API calls required.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Gaëtan Daubresse (@Gaetan2907) - Gaëtan Daubresse (@Gaetan2907)

View file

@ -33,6 +33,11 @@ description:
- When updating a client_scope, where possible provide the client_scope ID to the module. This removes a lookup - When updating a client_scope, where possible provide the client_scope ID to the module. This removes a lookup
to the API to translate the name into the client_scope ID. to the API to translate the name into the client_scope ID.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -151,8 +156,8 @@ options:
- Values may be single values (for example a string) or a list of strings. - Values may be single values (for example a string) or a list of strings.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Gaëtan Daubresse (@Gaetan2907) - Gaëtan Daubresse (@Gaetan2907)

View file

@ -32,6 +32,12 @@ description:
- "Note that this module returns the client secret. To avoid this showing up in the logs, - "Note that this module returns the client secret. To avoid this showing up in the logs,
please add C(no_log: true) to the task." please add C(no_log: true) to the task."
attributes:
check_mode:
support: full
diff_mode:
support: none
options: options:
realm: realm:
type: str type: str
@ -57,6 +63,7 @@ options:
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Fynn Chen (@fynncfchen) - Fynn Chen (@fynncfchen)

View file

@ -14,7 +14,6 @@ module: keycloak_clienttemplate
short_description: Allows administration of Keycloak client templates via Keycloak API short_description: Allows administration of Keycloak client templates via Keycloak API
description: description:
- This module allows the administration of Keycloak client templates via the Keycloak REST API. It - This module allows the administration of Keycloak client templates via the Keycloak REST API. It
requires access to the REST API via OpenID Connect; the user connecting and the client being requires access to the REST API via OpenID Connect; the user connecting and the client being
@ -29,6 +28,12 @@ description:
SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful. SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful.
If you do not specify a setting, usually a sensible default is chosen. If you do not specify a setting, usually a sensible default is chosen.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
description: description:
@ -155,14 +160,15 @@ options:
type: dict type: dict
notes: notes:
- The Keycloak REST API defines further fields (namely I(bearerOnly), I(consentRequired), I(standardFlowEnabled), - The Keycloak REST API defines further fields (namely I(bearerOnly), I(consentRequired), I(standardFlowEnabled),
I(implicitFlowEnabled), I(directAccessGrantsEnabled), I(serviceAccountsEnabled), I(publicClient), and I(implicitFlowEnabled), I(directAccessGrantsEnabled), I(serviceAccountsEnabled), I(publicClient), and
I(frontchannelLogout)) which, while available with keycloak_client, do not have any effect on I(frontchannelLogout)) which, while available with keycloak_client, do not have any effect on
Keycloak client-templates and are discarded if supplied with an API request changing client-templates. As such, Keycloak client-templates and are discarded if supplied with an API request changing client-templates. As such,
they are not available through this module. they are not available through this module.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Eike Frost (@eikef) - Eike Frost (@eikef)

View file

@ -31,6 +31,11 @@ description:
- When updating a group, where possible provide the group ID to the module. This removes a lookup - When updating a group, where possible provide the group ID to the module. This removes a lookup
to the API to translate the name into the group ID. to the API to translate the name into the group ID.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -74,8 +79,8 @@ notes:
are read-only for groups. This limitation will be removed in a later version of this module. are read-only for groups. This limitation will be removed in a later version of this module.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Adam Goossens (@adamgoossens) - Adam Goossens (@adamgoossens)

View file

@ -26,6 +26,11 @@ description:
- The names of module options are snake_cased versions of the camelCase ones found in the - The names of module options are snake_cased versions of the camelCase ones found in the
Keycloak API and its documentation at U(https://www.keycloak.org/docs-api/15.0/rest-api/index.html). Keycloak API and its documentation at U(https://www.keycloak.org/docs-api/15.0/rest-api/index.html).
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -270,7 +275,8 @@ options:
type: dict type: dict
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Laurent Paumier (@laurpaum) - Laurent Paumier (@laurpaum)

View file

@ -17,7 +17,6 @@ short_description: Allows administration of Keycloak realm via Keycloak API
version_added: 3.0.0 version_added: 3.0.0
description: description:
- This module allows the administration of Keycloak realm via the Keycloak REST API. It - This module allows the administration of Keycloak realm via the Keycloak REST API. It
requires access to the REST API via OpenID Connect; the user connecting and the realm being requires access to the REST API via OpenID Connect; the user connecting and the realm being
@ -33,6 +32,12 @@ description:
SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful. SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful.
If you do not specify a setting, usually a sensible default is chosen. If you do not specify a setting, usually a sensible default is chosen.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
description: description:
@ -503,8 +508,8 @@ options:
type: int type: int
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Christophe Gilles (@kris2kris) - Christophe Gilles (@kris2kris)

View file

@ -30,6 +30,11 @@ description:
be returned that way by this module. You may pass single values for attributes when calling the module, be returned that way by this module. You may pass single values for attributes when calling the module,
and this will be translated into a list suitable for the API. and this will be translated into a list suitable for the API.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -74,8 +79,8 @@ options:
- Values may be single values (e.g. a string) or a list of strings. - Values may be single values (e.g. a string) or a list of strings.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Laurent Paumier (@laurpaum) - Laurent Paumier (@laurpaum)

View file

@ -26,6 +26,11 @@ description:
- The names of module options are snake_cased versions of the camelCase ones found in the - The names of module options are snake_cased versions of the camelCase ones found in the
Keycloak API and its documentation at U(https://www.keycloak.org/docs-api/20.0.2/rest-api/index.html). Keycloak API and its documentation at U(https://www.keycloak.org/docs-api/20.0.2/rest-api/index.html).
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -461,7 +466,8 @@ options:
type: dict type: dict
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Laurent Paumier (@laurpaum) - Laurent Paumier (@laurpaum)

View file

@ -32,6 +32,11 @@ description:
- When updating a user_rolemapping, where possible provide the role ID to the module. This removes a lookup - When updating a user_rolemapping, where possible provide the role ID to the module. This removes a lookup
to the API to translate the name into the role ID. to the API to translate the name into the role ID.
attributes:
check_mode:
support: full
diff_mode:
support: full
options: options:
state: state:
@ -104,8 +109,8 @@ options:
providing it will reduce the number of API calls required. providing it will reduce the number of API calls required.
extends_documentation_fragment: extends_documentation_fragment:
- community.general.keycloak - community.general.keycloak
- community.general.attributes
author: author:
- Dušan Marković (@bratwurzt) - Dušan Marković (@bratwurzt)