|
|
@ -148,10 +148,11 @@ EXAMPLES = '''
|
|
|
|
# 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_query_rules:
|
|
|
|
login_user: admin
|
|
|
|
login_user: admin
|
|
|
|
login_password: admin
|
|
|
|
login_password: admin
|
|
|
|
username: 'guest_ro'
|
|
|
|
username: 'guest_ro'
|
|
|
|
|
|
|
|
match_pattern: "^SELECT.*"
|
|
|
|
destination_hostgroup: 1
|
|
|
|
destination_hostgroup: 1
|
|
|
|
active: 1
|
|
|
|
active: 1
|
|
|
|
retries: 3
|
|
|
|
retries: 3
|
|
|
@ -163,7 +164,7 @@ EXAMPLES = '''
|
|
|
|
# config to runtime. It uses credentials in a supplied config file to connect
|
|
|
|
# config to runtime. It uses credentials in a supplied config file to connect
|
|
|
|
# to the proxysql admin interface.
|
|
|
|
# to the proxysql admin interface.
|
|
|
|
|
|
|
|
|
|
|
|
- proxysql_backend_servers:
|
|
|
|
- proxysql_query_rules:
|
|
|
|
config_file: '~/proxysql.cnf'
|
|
|
|
config_file: '~/proxysql.cnf'
|
|
|
|
username: 'guest_ro'
|
|
|
|
username: 'guest_ro'
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|