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