Debian Codegraph @

ansible_collections/community/proxysql/plugins/doc_fragments/proxysql.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2017, Ansible Project
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt
5
6 from __future__ import (absolute_import, division, print_function)
7 __metaclass__ = type
8
9
10 class ModuleDocFragment(object):
11
12 # Documentation fragment for ProxySQL connectivity
13 CONNECTIVITY = r'''
14 options:
15 login_user:
16 description:
17 - The username used to authenticate to ProxySQL admin interface.
18 type: str
19 login_password:
20 description:
21 - The password used to authenticate to ProxySQL admin interface.
22 type: str
23 login_host:
24 description:
25 - The host used to connect to ProxySQL admin interface.
26 type: str
27 default: '127.0.0.1'
28 login_unix_socket:
29 description:
30 - The socket used to connect to ProxySQL admin interface.
31 type: str
32 login_port:
33 description:
34 - The port used to connect to ProxySQL admin interface.
35 type: int
36 default: 6032
37 config_file:
38 description:
39 - Specify a config file from which I(login_user) and I(login_password)
40 are to be read.
41 type: path
42 default: ''
43 requirements:
44 - PyMySQL
45 - mysqlclient
46 '''
47
48 # Documentation fragment for managing ProxySQL configuration
49 MANAGING_CONFIG = r'''
50 options:
51 save_to_disk:
52 description:
53 - Save config to sqlite db on disk to persist the configuration.
54 type: bool
55 default: true
56 load_to_runtime:
57 description:
58 - Dynamically load config to runtime memory.
59 type: bool
60 default: true
61 '''