mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Added support for require SSL on user creation
This commit is contained in:
parent
04c8db5fc0
commit
f0f65c9248
1 changed files with 14 additions and 0 deletions
|
@ -79,6 +79,20 @@ include:
|
||||||
- grant: {{db['grants']|join(",")}}
|
- grant: {{db['grants']|join(",")}}
|
||||||
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
|
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
|
||||||
- grant_option: {{ db['grant_option'] | default(False) }}
|
- grant_option: {{ db['grant_option'] | default(False) }}
|
||||||
|
- ssl_option:
|
||||||
|
- SSL: {{ user['ssl'] | default(False) }}
|
||||||
|
{% if user['ssl-X509'] is defined %}
|
||||||
|
- X509: {{ user['ssl-X509'] }}
|
||||||
|
{% endif %}
|
||||||
|
{% if user['ssl-SUBJECT'] is defined %}
|
||||||
|
- SUBJECT: {{ user['ssl-SUBJECT'] }}
|
||||||
|
{% endif %}
|
||||||
|
{% if user['ssl-ISSUER'] is defined %}
|
||||||
|
- ISSUER: {{ user['ssl-ISSUER'] }}
|
||||||
|
{% endif %}
|
||||||
|
{% if user['ssl-CIPHER'] is defined %}
|
||||||
|
- CIPHER: {{ user['ssl-CIPHER'] }}
|
||||||
|
{% endif %}
|
||||||
- user: {{ name }}
|
- user: {{ name }}
|
||||||
- host: '{{ host }}'
|
- host: '{{ host }}'
|
||||||
- connection_host: '{{ mysql_host }}'
|
- connection_host: '{{ mysql_host }}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue