Skip to content
Snippets Groups Projects
Unverified Commit 154fe789 authored by Niels Abspoel's avatar Niels Abspoel Committed by GitHub
Browse files

Merge pull request #204 from M2Mobi/ssl-no-database

Add support for user creation with SSL when no databases are defined
parents 3cae2bc9 165bdf67
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,22 @@ include: ...@@ -58,6 +58,22 @@ include:
- grant: {{ user['grants']|join(",") }} - grant: {{ user['grants']|join(",") }}
- database: '*.*' - database: '*.*'
- grant_option: {{ user['grant_option'] | default(False) }} - grant_option: {{ user['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 %}
- 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 %}
{% endif %}
- user: {{ name }} - user: {{ name }}
- host: '{{ host }}' - host: '{{ host }}'
- connection_host: '{{ mysql_host }}' - connection_host: '{{ mysql_host }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment