mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
several fixes to doc to avoid breaking doc build
This commit is contained in:
parent
ec8bd8ee77
commit
15a0cffee0
1 changed files with 29 additions and 56 deletions
|
@ -23,128 +23,105 @@ version_added: "2.3"
|
||||||
author: "Ben Mildren (@bmildren)"
|
author: "Ben Mildren (@bmildren)"
|
||||||
short_description: Modifies query rules using the proxysql admin interface.
|
short_description: Modifies query rules using the proxysql admin interface.
|
||||||
description:
|
description:
|
||||||
- The M(proxysql_query_rules) module modifies query rules using the proxysql
|
- The M(proxysql_query_rules) module modifies query rules using the proxysql admin interface.
|
||||||
admin interface.
|
|
||||||
options:
|
options:
|
||||||
rule_id:
|
rule_id:
|
||||||
description:
|
description:
|
||||||
- The unique id of the rule. Rules are processed in rule_id order.
|
- The unique id of the rule. Rules are processed in rule_id order.
|
||||||
[integer]
|
|
||||||
active:
|
active:
|
||||||
description:
|
description:
|
||||||
- A rule with I(active) set to C(False) will be tracked in the database,
|
- A rule with I(active) set to C(False) will be tracked in the database, but will be never loaded in the in-memory data structures
|
||||||
but will be never loaded in the in-memory data structures [boolean]
|
|
||||||
username:
|
username:
|
||||||
description:
|
description:
|
||||||
- Filtering criteria matching username. If I(username) is non-NULL, a
|
- Filtering criteria matching username. If I(username) is non-NULL, a query will match only if the connection is made with the correct username.
|
||||||
query will match only if the connection is made with the correct
|
|
||||||
username. [string]
|
|
||||||
schemaname:
|
schemaname:
|
||||||
description:
|
description:
|
||||||
- Filtering criteria matching schemaname. If I(schemaname) is
|
- Filtering criteria matching schemaname. If I(schemaname) is non-NULL,
|
||||||
non-NULL, a query will match only if the connection uses schemaname as
|
a query will match only if the connection uses schemaname as its default schema.
|
||||||
its default schema. [string]
|
|
||||||
flagIN:
|
flagIN:
|
||||||
description:
|
description:
|
||||||
- Used in combination with I(flagOUT) and I(apply) to create chains of
|
- Used in combination with I(flagOUT) and I(apply) to create chains of rules.
|
||||||
rules. [integer]
|
|
||||||
client_addr:
|
client_addr:
|
||||||
description:
|
description:
|
||||||
- Match traffic from a specific source. [string]
|
- Match traffic from a specific source.
|
||||||
proxy_addr:
|
proxy_addr:
|
||||||
description:
|
description:
|
||||||
- Match incoming traffic on a specific local IP. [string]
|
- Match incoming traffic on a specific local IP.
|
||||||
proxy_port:
|
proxy_port:
|
||||||
description:
|
description:
|
||||||
- Match incoming traffic on a specific local port. [integer]
|
- Match incoming traffic on a specific local port.
|
||||||
digest:
|
digest:
|
||||||
description:
|
description:
|
||||||
- Match queries with a specific digest, as returned by
|
- Match queries with a specific digest, as returned by stats_mysql_query_digest.digest.
|
||||||
stats_mysql_query_digest.digest. [string]
|
|
||||||
match_digest:
|
match_digest:
|
||||||
description:
|
description:
|
||||||
- Regular expression that matches the query digest. The dialect of
|
- "Regular expression that matches the query digest.
|
||||||
regular expressions used is that of re2 -
|
The dialect of regular expressions used is that of re2 - https://github.com/google/re2."
|
||||||
https://github.com/google/re2. [string]
|
|
||||||
match_pattern:
|
match_pattern:
|
||||||
description:
|
description:
|
||||||
- Regular expression that matches the query text. The dialect of regular
|
- "Regular expression that matches the query text. The dialect of regular expressions used is that of re2 - https://github.com/google/re2."
|
||||||
expressions used is that of re2 - https://github.com/google/re2.
|
|
||||||
[string]
|
|
||||||
negate_match_pattern:
|
negate_match_pattern:
|
||||||
description:
|
description:
|
||||||
- If I(negate_match_pattern) is set to C(True), only queries not matching
|
- If I(negate_match_pattern) is set to C(True), only queries not matching
|
||||||
the query text will be considered as a match. This acts as a NOT
|
the query text will be considered as a match. This acts as a NOT
|
||||||
operator in front of the regular expression matching against
|
operator in front of the regular expression matching against
|
||||||
match_pattern. [boolean]
|
match_pattern.
|
||||||
flagOUT:
|
flagOUT:
|
||||||
description:
|
description:
|
||||||
- Used in combination with I(flagIN) and apply to create chains of rules.
|
- Used in combination with I(flagIN) and apply to create chains of rules.
|
||||||
When set, I(flagOUT) signifies the I(flagIN) to be used in the next
|
When set, I(flagOUT) signifies the I(flagIN) to be used in the next
|
||||||
chain of rules. [integer]
|
chain of rules.
|
||||||
replace_pattern:
|
replace_pattern:
|
||||||
description:
|
description:
|
||||||
- This is the pattern with which to replace the matched pattern. Note
|
- This is the pattern with which to replace the matched pattern. Note
|
||||||
that this is optional, and when ommitted, the query processor will only
|
that this is optional, and when ommitted, the query processor will only
|
||||||
cache, route, or set other parameters without rewriting. [string]
|
cache, route, or set other parameters without rewriting.
|
||||||
destination_hostgroup:
|
destination_hostgroup:
|
||||||
description:
|
description:
|
||||||
- Route matched queries to this hostgroup. This happens unless there is
|
- Route matched queries to this hostgroup. This happens unless there is a started transaction and the logged in user has
|
||||||
a started transaction and the logged in user has
|
|
||||||
I(transaction_persistent) set to C(True) (see M(proxysql_mysql_users)).
|
I(transaction_persistent) set to C(True) (see M(proxysql_mysql_users)).
|
||||||
[integer]
|
|
||||||
cache_ttl:
|
cache_ttl:
|
||||||
description:
|
description:
|
||||||
- The number of milliseconds for which to cache the result of the query.
|
- The number of milliseconds for which to cache the result of the query.
|
||||||
Note in ProxySQL 1.1 I(cache_ttl) was in seconds. [integer]
|
Note in ProxySQL 1.1 I(cache_ttl) was in seconds.
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- The maximum timeout in milliseconds with which the matched or rewritten
|
- The maximum timeout in milliseconds with which the matched or rewritten
|
||||||
query should be executed. If a query run for longer than the specific
|
query should be executed. If a query run for longer than the specific
|
||||||
threshold, the query is automatically killed. If timeout is not
|
threshold, the query is automatically killed. If timeout is not
|
||||||
specified, the global variable mysql-default_query_timeout applies.
|
specified, the global variable mysql-default_query_timeout applies.
|
||||||
[integer]
|
|
||||||
retries:
|
retries:
|
||||||
description:
|
description:
|
||||||
- The maximum number of times a query needs to be re-executed in case of
|
- The maximum number of times a query needs to be re-executed in case of detected failure during the execution of the query.
|
||||||
detected failure during the execution of the query. If retries is not
|
If retries is not specified, the global variable mysql-query_retries_on_failure applies.
|
||||||
specified, the global variable mysql-query_retries_on_failure applies.
|
|
||||||
[integer]
|
|
||||||
delay:
|
delay:
|
||||||
description:
|
description:
|
||||||
- Number of milliseconds to delay the execution of the query. This is
|
- Number of milliseconds to delay the execution of the query. This is
|
||||||
essentially a throttling mechanism and QoS, and allows a way to give
|
essentially a throttling mechanism and QoS, and allows a way to give
|
||||||
priority to queries over others. This value is added to the
|
priority to queries over others. This value is added to the
|
||||||
mysql-default_query_delay global variable that applies to all queries.
|
mysql-default_query_delay global variable that applies to all queries.
|
||||||
[integer]
|
|
||||||
mirror_flagOUT:
|
mirror_flagOUT:
|
||||||
description:
|
description:
|
||||||
- Enables query mirroring. If set I(mirror_flagOUT) can be used to
|
- Enables query mirroring. If set I(mirror_flagOUT) can be used to
|
||||||
evaluates the mirrored query against the specified chain of rules.
|
evaluates the mirrored query against the specified chain of rules.
|
||||||
[integer]
|
|
||||||
mirror_hostgroup:
|
mirror_hostgroup:
|
||||||
description:
|
description:
|
||||||
- Enables query mirroring. If set I(mirror_hostgroup) can be used to
|
- Enables query mirroring. If set I(mirror_hostgroup) can be used to mirror queries to the same or different hostgroup.
|
||||||
mirror queries to the same or different hostgroup. [integer]
|
|
||||||
error_msg:
|
error_msg:
|
||||||
description:
|
description:
|
||||||
- Query will be blocked, and the specified error_msg will be returned to
|
- Query will be blocked, and the specified error_msg will be returned to the client.
|
||||||
the client. [string]
|
|
||||||
log:
|
log:
|
||||||
description:
|
description:
|
||||||
- Query will be logged. [boolean]
|
- Query will be logged.
|
||||||
apply:
|
apply:
|
||||||
description:
|
description:
|
||||||
- Used in combination with I(flagIN) and I(flagOUT) to create chains of
|
- Used in combination with I(flagIN) and I(flagOUT) to create chains of rules. Setting apply to True signifies the last rule to be applied.
|
||||||
rules. Setting apply to True signifies the last rule to be applied.
|
|
||||||
[boolean]
|
|
||||||
comment:
|
comment:
|
||||||
description:
|
description:
|
||||||
- Free form text field, usable for a descriptive comment of the query
|
- Free form text field, usable for a descriptive comment of the query rule.
|
||||||
rule. [string]
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- When C(present) - adds the rule, when C(absent) - removes the rule.
|
- "When C(present) - adds the rule, when C(absent) - removes the rule."
|
||||||
choices: [ "present", "absent" ]
|
choices: [ "present", "absent" ]
|
||||||
default: present
|
default: present
|
||||||
force_delete:
|
force_delete:
|
||||||
|
@ -155,8 +132,7 @@ options:
|
||||||
default: False
|
default: False
|
||||||
save_to_disk:
|
save_to_disk:
|
||||||
description:
|
description:
|
||||||
- Save mysql host config to sqlite db on disk to persist the
|
- Save mysql host config to sqlite db on disk to persist the configuration.
|
||||||
configuration.
|
|
||||||
default: True
|
default: True
|
||||||
load_to_runtime:
|
load_to_runtime:
|
||||||
description:
|
description:
|
||||||
|
@ -180,20 +156,17 @@ options:
|
||||||
default: 6032
|
default: 6032
|
||||||
config_file:
|
config_file:
|
||||||
description:
|
description:
|
||||||
- Specify a config file from which login_user and login_password are to
|
- Specify a config file from which login_user and login_password are to be read
|
||||||
be read
|
|
||||||
default: ''
|
default: ''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
---
|
|
||||||
# This example adds a rule to redirect queries from a specific user to another
|
# This example adds a rule to redirect queries from a specific user to another
|
||||||
# hostgroup, it saves the mysql query rule config to disk, but avoids loading
|
# hostgroup, it saves the mysql query rule config to disk, but avoids loading
|
||||||
# the mysql query config config to runtime (this might be because several
|
# the mysql query config config to runtime (this might be because several
|
||||||
# rules are being added and the user wants to push the config to runtime in a
|
# rules are being added and the user wants to push the config to runtime in a
|
||||||
# single batch using the M(proxysql_manage_config) module). It uses supplied
|
# single batch using the M(proxysql_manage_config) module). It uses supplied
|
||||||
# credentials to connect to the proxysql admin interface.
|
# credentials to connect to the proxysql admin interface.
|
||||||
|
|
||||||
- proxysql_backend_servers:
|
- proxysql_backend_servers:
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: admin
|
login_password: admin
|
||||||
|
|
Loading…
Reference in a new issue