Debian Codegraph @

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

raw
1 # Copyright (c) Ansible project
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 Consul modules
13 DOCUMENTATION = r"""
14 options:
15 host:
16 description:
17 - Host of the Consul agent.
18 default: localhost
19 type: str
20 port:
21 type: int
22 description:
23 - The port on which the consul agent is running.
24 default: 8500
25 scheme:
26 description:
27 - The protocol scheme on which the Consul agent is running. Defaults to V(http) and can be set to V(https) for secure
28 connections.
29 default: http
30 type: str
31 validate_certs:
32 type: bool
33 description:
34 - Whether to verify the TLS certificate of the Consul agent.
35 default: true
36 ca_path:
37 description:
38 - The CA bundle to use for https connections.
39 type: str
40 """
41
42 TOKEN = r"""
43 options:
44 token:
45 description:
46 - The token to use for authorization.
47 type: str
48 """
49
50 ACTIONGROUP_CONSUL = r"""
51 options: {}
52 attributes:
53 action_group:
54 description: Use C(group/community.general.consul) in C(module_defaults) to set defaults for this module.
55 support: full
56 membership:
57 - community.general.consul
58 """