mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Merge pull request #129 from stokbaek/master
Added support for require SSL on user creation
This commit is contained in:
commit
78ef0b738b
2 changed files with 19 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 }}'
|
||||||
|
|
|
@ -70,6 +70,11 @@ mysql:
|
||||||
bob:
|
bob:
|
||||||
password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
|
password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
|
||||||
host: localhost
|
host: localhost
|
||||||
|
ssl: True
|
||||||
|
ssl-X509: True
|
||||||
|
ssl-SUBJECT: Subject
|
||||||
|
ssl-ISSUER: Name
|
||||||
|
ssl-CIPHER: Cipher
|
||||||
databases:
|
databases:
|
||||||
- database: foo
|
- database: foo
|
||||||
grants: ['all privileges']
|
grants: ['all privileges']
|
||||||
|
|
Loading…
Add table
Reference in a new issue