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

@@ -41,6 +41,7 @@ Galera cluster master node
password: 'password'
host: 'localhost'
rights: 'all privileges'
database: '*.*'

Galera cluster slave node


+ 1
- 1
galera/server.sls View File

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

Loading…
Cancel
Save