Debian Codegraph @

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

raw
1 # Copyright (c) 2021, Andreas Botzner <andreas at botzner dot com>
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 # Common parameters for Redis modules
13 DOCUMENTATION = r"""
14 options:
15 login_host:
16 description:
17 - Specify the target host running the database.
18 default: localhost
19 type: str
20 login_port:
21 description:
22 - Specify the port to connect to.
23 default: 6379
24 type: int
25 login_user:
26 description:
27 - Specify the user to authenticate with.
28 - Requires L(redis,https://pypi.org/project/redis) >= 3.4.0.
29 type: str
30 login_password:
31 description:
32 - Specify the password to authenticate with.
33 - Usually not used when target is localhost.
34 type: str
35 tls:
36 description:
37 - Specify whether or not to use TLS for the connection.
38 type: bool
39 default: true
40 validate_certs:
41 description:
42 - Specify whether or not to validate TLS certificates.
43 - This should only be turned off for personally controlled sites or with C(localhost) as target.
44 type: bool
45 default: true
46 ca_certs:
47 description:
48 - Path to root certificates file. If not set and O(tls) is set to V(true), certifi's CA certificates are used.
49 type: str
50 client_cert_file:
51 description:
52 - Path to the client certificate file.
53 type: str
54 version_added: 9.3.0
55 client_key_file:
56 description:
57 - Path to the client private key file.
58 type: str
59 version_added: 9.3.0
60 requirements: ["redis", "certifi"]
61
62 notes:
63 - Requires the C(redis) Python package on the remote host. You can install it with pip (C(pip install redis)) or with a
64 package manager. Information on the library can be found at U(https://github.com/andymccurdy/redis-py).
65 """