mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Merge pull request #137 from joejulian/fix_grant
Fix broken GRANT when not ssl
This commit is contained in:
commit
740034db89
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ include:
|
|||
- grant: {{db['grants']|join(",")}}
|
||||
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
|
||||
- grant_option: {{ db['grant_option'] | default(False) }}
|
||||
{% if 'ssl' in user or 'ssl-X509' in user %}
|
||||
- ssl_option:
|
||||
- SSL: {{ user['ssl'] | default(False) }}
|
||||
{% if user['ssl-X509'] is defined %}
|
||||
|
@ -93,6 +94,7 @@ include:
|
|||
{% if user['ssl-CIPHER'] is defined %}
|
||||
- CIPHER: {{ user['ssl-CIPHER'] }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
- user: {{ name }}
|
||||
- host: '{{ host }}'
|
||||
- connection_host: '{{ mysql_host }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue