Merge "Update MySQL monitor user privileges for ProxySQL monitoring"

This commit is contained in:
Zuul 2024-10-25 16:40:10 +00:00 committed by Gerrit Code Review
commit 325a02093a
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
name: "{{ mariadb_monitor_user }}"
password: "{% if enable_proxysql | bool %}{{ mariadb_monitor_password }}{% endif %}"
host: "%"
priv: "*.*:USAGE"
priv: "*.*:USAGE,REPLICATION CLIENT"
tags: always
with_dict: "{{ mariadb_shards_info.shards }}"
loop_control:

View File

@ -29,7 +29,7 @@
name: "{{ mariadb_monitor_user }}"
password: "{% if enable_proxysql | bool %}{{ mariadb_monitor_password }}{% endif %}"
host: "%"
priv: "*.*:USAGE"
priv: "*.*:USAGE,REPLICATION CLIENT"
when:
- inventory_hostname == groups[mariadb_shard_group][0]