Skip to content

Commit

Permalink
Add support for ssl_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Sep 16, 2019
1 parent b04f673 commit 9f78795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## percona-client

[![Build Status](https://travis-ci.org/Oefenweb/ansible-percona-client.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-percona-client) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-percona--client-blue.svg)](https://galaxy.ansible.com/Oefenweb/percona-client)
[![Build Status](https://travis-ci.org/Oefenweb/ansible-percona-client.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-percona-client)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-percona--client-blue.svg)](https://galaxy.ansible.com/Oefenweb/percona-client)

Set up a [percona-server](https://www.percona.com/software/mysql-database/percona-server) client in Debian-like systems.

Expand All @@ -23,7 +24,8 @@ None
* `percona_client_my_cnf_files.{n}.login_user`: [optional, default: `owner`]: The username used to authenticate with
* `percona_client_my_cnf_files.{n}.login_password`: [required]: The password used to authenticate with

* `percona_client_my_cnf_files.{n}.ssl`: [optional]: Whether or not to use SSL when connection
* `percona_client_my_cnf_files.{n}.ssl`: [optional]: Whether or not to use SSL when connection (deprecated as of `5.7.11` and is removed in `8.0`)
* `percona_client_my_cnf_files.{n}.ssl_mode`: [optional]: Specifies the desired security state of the connection to the server (e.g. `VERIFY_CA`)

* `percona_client_my_cnf_files.{n}.ssl_ca`: [optional, default: `ca-cert`]: The identifier of the ca certificate file in ssl map
* `percona_client_my_cnf_files.{n}.ssl_cert`: [optional, default: `client-cert`]: The identifier of the ssl certificate file in ssl map
Expand Down
3 changes: 3 additions & 0 deletions templates/root/.my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ password = '{{ item.login_password }}'
{% if item.ssl is defined %}
ssl = {{ 1 if item.ssl else 0 }}
{% endif %}
{% if item.ssl_mode is defined %}
ssl_mode = {{ item.ssl_mode }}
{% endif %}

{% if percona_client_ssl_map %}
{% if percona_client_ssl_map[ item.ssl_ca | default('ca-cert') ]['dest'] is defined %}
Expand Down

0 comments on commit 9f78795

Please sign in to comment.