Skip to content
Snippets Groups Projects
Commit 165bdf67 authored by Damien Tardy-Panis's avatar Damien Tardy-Panis Committed by Heinz Wiesinger
Browse files

Add support for user creation with SSL when no databases are defined

parent edb8c82f
Branches
Tags
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