Debian Codegraph @

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

raw
1 # Copyright (c) 2017-18, Ansible Project
2 # Copyright (c) 2017-18, Abhijeet Kasurde ([email protected])
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
7 # Do not use this from other collections or standalone plugins/modules!
8
9 from __future__ import annotations
10
11
12 class ModuleDocFragment:
13 # Parameters for FreeIPA/IPA modules
14 DOCUMENTATION = r"""
15 options:
16 ipa_port:
17 description:
18 - Port of FreeIPA / IPA server.
19 - If the value is not specified in the task, the value of environment variable E(IPA_PORT) is used instead.
20 - If both the environment variable E(IPA_PORT) and the value are not specified in the task, then default value is set.
21 type: int
22 default: 443
23 ipa_host:
24 description:
25 - IP or hostname of IPA server.
26 - If the value is not specified in the task, the value of environment variable E(IPA_HOST) is used instead.
27 - If both the environment variable E(IPA_HOST) and the value are not specified in the task, then DNS is used to try
28 to discover the FreeIPA server.
29 - The relevant entry needed in FreeIPA is the C(ipa-ca) entry.
30 - If neither the DNS entry, nor the environment E(IPA_HOST), nor the value are available in the task, then the default
31 value is used.
32 type: str
33 default: ipa.example.com
34 ipa_user:
35 description:
36 - Administrative account used on IPA server.
37 - If the value is not specified in the task, the value of environment variable E(IPA_USER) is used instead.
38 - If both the environment variable E(IPA_USER) and the value are not specified in the task, then default value is set.
39 type: str
40 default: admin
41 ipa_pass:
42 description:
43 - Password of administrative user.
44 - If the value is not specified in the task, the value of environment variable E(IPA_PASS) is used instead.
45 - Note that if the C(urllib_gssapi) library is available, it is possible to use GSSAPI to authenticate to FreeIPA.
46 - If the environment variable E(KRB5CCNAME) is available, the module uses this Kerberos credentials cache to authenticate
47 to the FreeIPA server.
48 - If the environment variable E(KRB5_CLIENT_KTNAME) is available, and E(KRB5CCNAME) is not; the module uses this Kerberos
49 keytab to authenticate.
50 - If GSSAPI is not available, the usage of O(ipa_pass) is required.
51 type: str
52 ipa_prot:
53 description:
54 - Protocol used by IPA server.
55 - If the value is not specified in the task, the value of environment variable E(IPA_PROT) is used instead.
56 - If both the environment variable E(IPA_PROT) and the value are not specified in the task, then default value is set.
57 type: str
58 choices: [http, https]
59 default: https
60 validate_certs:
61 description:
62 - This only applies if O(ipa_prot) is V(https).
63 - If set to V(false), the SSL certificates are not validated.
64 - This should only set to V(false) used on personally controlled sites using self-signed certificates.
65 type: bool
66 default: true
67 ipa_timeout:
68 description:
69 - Specifies idle timeout (in seconds) for the connection.
70 - For bulk operations, you may want to increase this in order to avoid timeout from IPA server.
71 - If the value is not specified in the task, the value of environment variable E(IPA_TIMEOUT) is used instead.
72 - If both the environment variable E(IPA_TIMEOUT) and the value are not specified in the task, then default value is
73 set.
74 type: int
75 default: 10
76 """
77
78 CONNECTION_NOTES = r"""
79 options: {}
80 notes:
81 - This module uses JSON-RPC over HTTP(S) to communicate with the FreeIPA server.
82 If you need to enroll the managed node into FreeIPA realm, you might want to consider using the collection
83 L(freeipa.ansible_freeipa, https://galaxy.ansible.com/ui/repo/published/freeipa/ansible_freeipa/), but shell access to one
84 node from the realm is required to manage the deployment.
85 """