Sfoglia il codice sorgente

Adding an ability to set target for mysql user grant.

Change-Id: I793a25750c39f70bb26415e7e6a95100b77773fe
master
Dzmitry Stremkouski 6 anni fa
parent
commit
9aa71080f0
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +1
    -0
      README.rst
  2. +1
    -1
      galera/server.sls

+ 1
- 0
README.rst Vedi 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 Vedi 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…
Annulla
Salva