mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Added support for % hosts
This commit is contained in:
parent
8159d61147
commit
bad340eb38
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ include:
|
||||||
{{ state_id }}:
|
{{ state_id }}:
|
||||||
mysql_user.present:
|
mysql_user.present:
|
||||||
- name: {{ user['name'] }}
|
- name: {{ user['name'] }}
|
||||||
- host: {{ user['host'] }}
|
- host: '{{ user['host'] }}'
|
||||||
{%- if user['password_hash'] is defined %}
|
{%- if user['password_hash'] is defined %}
|
||||||
- password_hash: '{{ user['password_hash'] }}'
|
- password_hash: '{{ user['password_hash'] }}'
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -28,7 +28,7 @@ include:
|
||||||
- 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
|
||||||
- connection_user: root
|
- connection_user: root
|
||||||
- connection_pass: '{{ salt['pillar.get']('mysql:server:root_password', 'somepass') }}'
|
- connection_pass: '{{ salt['pillar.get']('mysql:server:root_password', 'somepass') }}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue