Browse Source

Adding an ability to set target for mysql user grant.

Change-Id: I793a25750c39f70bb26415e7e6a95100b77773fe
master
Dzmitry Stremkouski 6 years ago
parent
commit
9aa71080f0
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      README.rst
  2. +1
    -1
      galera/server.sls

+ 1
- 0
README.rst View File

password: 'password' password: 'password'
host: 'localhost' host: 'localhost'
rights: 'all privileges' rights: 'all privileges'
database: '*.*'


Galera cluster slave node Galera cluster slave node



+ 1
- 1
galera/server.sls View File

mysql_grants_{{ user.name }}_{{ database_name }}_{{ user.host }}: mysql_grants_{{ user.name }}_{{ database_name }}_{{ user.host }}:
mysql_grants.present: mysql_grants.present:
- grant: {{ user.rights }} - grant: {{ user.rights }}
- database: '{{ database_name }}.*'
- database: {{ user.get('database', database_name + '.*') }}
- user: '{{ user.name }}' - user: '{{ user.name }}'
- host: '{{ user.host }}' - host: '{{ user.host }}'
- ssl_option: {{ user.get('ssl_option', False) }} - ssl_option: {{ user.get('ssl_option', False) }}

Loading…
Cancel
Save