Add support for resource_limits when creating database users
This commit is contained in:
parent
40f2b782dc
commit
fc7808ace5
|
|
@ -91,6 +91,8 @@ mariadb_users: []
|
|||
# host: 100.64.200.10
|
||||
# password: password
|
||||
# priv: "*.*:USAGE/db1.*:ALL"
|
||||
# resource_limits:
|
||||
# MAX_USER_CONNECTIONS: 20
|
||||
# state: present|absent
|
||||
|
||||
# Replication
|
||||
|
|
|
|||
|
|
@ -28,6 +28,13 @@ mariadb_users:
|
|||
password: user2passwd
|
||||
priv: "db2.*:ALL"
|
||||
state: present
|
||||
- name: user3
|
||||
host: "%"
|
||||
password: user3passwd
|
||||
priv: "db2.*:ALL"
|
||||
resource_limits:
|
||||
MAX_USER_CONNECTIONS: 20
|
||||
state: present
|
||||
|
||||
mariadb_replication_user:
|
||||
- name: ReplicationUser
|
||||
|
|
|
|||
|
|
@ -9,5 +9,6 @@
|
|||
append_privs: "{{ item.append_privs | default('no') }}"
|
||||
encrypted: "{{ item.encrypted | default('no') }}"
|
||||
login_unix_socket: "{{ mariadb_unix_socket }}"
|
||||
resource_limits: "{{ item.resource_limits | default({}) }}"
|
||||
loop: "{{ mariadb_users }}"
|
||||
no_log: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue