mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
commit
35f054454e
2 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ mysql_delete_anonymous_user_{{ host }}:
|
|||
- absent
|
||||
- host: {{ host }}
|
||||
- name: ''
|
||||
- connection_host: localhost
|
||||
- connection_user: root
|
||||
- connection_pass: {{ mysql_root_password }}
|
||||
- connection_charset: utf8
|
||||
- require:
|
||||
- service: mysqld
|
||||
- pkg: mysql_python
|
||||
|
|
|
@ -26,7 +26,7 @@ include:
|
|||
mysql_grants.present:
|
||||
- name: {{ user['name'] ~ '_' ~ db['database'] }}
|
||||
- grant: {{db['grants']|join(",")}}
|
||||
- database: {{ db['database'] }}.*
|
||||
- database: '{{ db['database'] }}.*'
|
||||
- user: {{ user['name'] }}
|
||||
- host: '{{ user['host'] }}'
|
||||
- connection_host: localhost
|
||||
|
|
Loading…
Add table
Reference in a new issue