Debian Codegraph @

ansible_collections/community/general/plugins/doc_fragments/_keycloak.py

raw
1 # Copyright (c) 2017, Eike Frost <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 # Standard documentation fragment
13 DOCUMENTATION = r"""
14 options:
15 auth_keycloak_url:
16 description:
17 - URL to the Keycloak instance.
18 type: str
19 required: true
20 aliases:
21 - url
22
23 auth_client_id:
24 description:
25 - OpenID Connect C(client_id) to authenticate to the API with.
26 type: str
27 default: admin-cli
28
29 auth_realm:
30 description:
31 - Keycloak realm name to authenticate to for API access.
32 type: str
33
34 auth_client_secret:
35 description:
36 - Client Secret to use in conjunction with O(auth_client_id) (if required).
37 type: str
38
39 auth_username:
40 description:
41 - Username to authenticate for API access with.
42 type: str
43 aliases:
44 - username
45
46 auth_password:
47 description:
48 - Password to authenticate for API access with.
49 type: str
50 aliases:
51 - password
52
53 token:
54 description:
55 - Authentication token for Keycloak API.
56 type: str
57 version_added: 3.0.0
58
59 refresh_token:
60 description:
61 - Authentication refresh token for Keycloak API.
62 type: str
63 version_added: 10.3.0
64
65 validate_certs:
66 description:
67 - Verify TLS certificates (do not disable this in production).
68 type: bool
69 default: true
70
71 connection_timeout:
72 description:
73 - Controls the HTTP connections timeout period (in seconds) to Keycloak API.
74 type: int
75 default: 10
76 version_added: 4.5.0
77
78 http_agent:
79 description:
80 - Configures the HTTP User-Agent header.
81 type: str
82 default: Ansible
83 version_added: 5.4.0
84 """
85
86 ACTIONGROUP_KEYCLOAK = r"""
87 options: {}
88 attributes:
89 action_group:
90 description: Use C(group/community.general.keycloak) in C(module_defaults) to set defaults for this module.
91 support: full
92 membership:
93 - community.general.keycloak
94 """