mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
commit
79fe88b423
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ include:
|
|||
{{ state_id }}:
|
||||
mysql_user.present:
|
||||
- name: {{ user['name'] }}
|
||||
- host: {{ user['host'] }}
|
||||
- host: '{{ user['host'] }}'
|
||||
{%- if user['password_hash'] is defined %}
|
||||
- password_hash: '{{ user['password_hash'] }}'
|
||||
{% else %}
|
||||
|
@ -28,7 +28,7 @@ include:
|
|||
- grant: {{db['grants']|join(",")}}
|
||||
- database: {{ db['database'] }}.*
|
||||
- user: {{ user['name'] }}
|
||||
- host: {{ user['host'] }}
|
||||
- host: '{{ user['host'] }}'
|
||||
- connection_host: localhost
|
||||
- connection_user: root
|
||||
- connection_pass: '{{ salt['pillar.get']('mysql:server:root_password', 'somepass') }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue