Debian Codegraph @

ansible_collections/community/mongodb/plugins/doc_fragments/ssl_options.py

raw
1 from __future__ import (absolute_import, division, print_function)
2 __metaclass__ = type
3
4
5 class ModuleDocFragment(object):
6 # Standard documentation
7 DOCUMENTATION = r'''
8 options:
9 ssl:
10 description:
11 - Whether to use an SSL connection when connecting to the database.
12 required: no
13 type: bool
14 default: no
15 aliases:
16 - tls
17 ssl_cert_reqs:
18 description:
19 - Specifies whether a certificate is required from the other side of the connection,
20 and whether it will be validated if provided.
21 required: no
22 type: str
23 default: 'CERT_REQUIRED'
24 choices:
25 - 'CERT_NONE'
26 - 'CERT_OPTIONAL'
27 - 'CERT_REQUIRED'
28 aliases:
29 - tlsAllowInvalidCertificates
30 ssl_ca_certs:
31 description:
32 - The ssl_ca_certs option takes a path to a CA file.
33 required: no
34 type: str
35 aliases:
36 - tlsCAFile
37 ssl_crlfile:
38 description:
39 - The ssl_crlfile option takes a path to a CRL file.
40 required: no
41 type: str
42 ssl_certfile:
43 description:
44 - Present a client certificate using the ssl_certfile option.
45 required: no
46 type: str
47 aliases:
48 - tlsCertificateKeyFile
49 ssl_keyfile:
50 description:
51 - Private key for the client certificate.
52 required: no
53 type: str
54 ssl_pem_passphrase:
55 description:
56 - Passphrase to decrypt encrypted private keys.
57 required: no
58 type: str
59 aliases:
60 - tlsCertificateKeyFilePassword
61 auth_mechanism:
62 description:
63 - Authentication type.
64 required: no
65 type: str
66 choices:
67 - 'SCRAM-SHA-256'
68 - 'SCRAM-SHA-1'
69 - 'MONGODB-X509'
70 - 'GSSAPI'
71 - 'PLAIN'
72 connection_options:
73 description:
74 - Additional connection options.
75 - Supply as a list of dicts or strings containing key value pairs seperated with '='.
76 required: no
77 type: list
78 elements: raw
79 '''