Oefenweb.percona_client
percona-client
Set up a percona-server client in Debian-like systems.
Requirements
software-properties-common(will be installed)dirmngr(will be installed)
Variables
percona_client_version: [default:5.6]: Version to install (e.g.5.7)percona_client_install: [default:[]]: Additional packages to installpercona_client_my_cnf_files: [default:[]]:.my.cnffiles to configurepercona_client_my_cnf_files.{n}.dest: [optional, default:~owner/.my.cnf']: The remote path of the file to copypercona_client_my_cnf_files.{n}.owner: [required]: The name of the user that should own the filepercona_client_my_cnf_files.{n}.group: [optional, default:owner]: The name of the group that should own the filepercona_client_my_cnf_files.{n}.mode: [optional, default:0600]: The mode of the filepercona_client_my_cnf_files.{n}.login_host: [optional, default:localhost]: The host running the serverpercona_client_my_cnf_files.{n}.login_port: [optional, default:3306]: The port of the serverpercona_client_my_cnf_files.{n}.login_user: [optional, default:owner]: The username used to authenticate withpercona_client_my_cnf_files.{n}.login_password: [required]: The password used to authenticate withpercona_client_my_cnf_files.{n}.ssl: [optional]: Whether or not to use SSL when connection (deprecated as of5.7.11and is removed in8.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 mappercona_client_my_cnf_files.{n}.ssl_cert: [optional, default:client-cert]: The identifier of the ssl certificate file in ssl mappercona_client_my_cnf_files.{n}.ssl_key: [optional, default:client-key]: The identifier of the ssl key file in ssl mappercona_client_ssl_map: [default:{}]: SSL declarationspercona_client_ssl_map.key: [required]: The identifier of the file (e.g.ca-cert)percona_client_ssl_map.key.src: [required]: The local path of the file to copy, can be absolute or relative (e.g.../../../files/percona-client/etc/mysql/ca-cert.pem)percona_client_ssl_map.key.dest: [required]: The remote path of the file to copy (e.g./etc/mysql/ca-cert.pem)percona_client_ssl_map.key.owner: [optional, defaultroot]: The name of the user that should own the filepercona_client_ssl_map.key.group: [optional, defaultmysql]:The name of the group that should own the filepercona_client_ssl_map.key.mode: [optional, default0640]: The mode of the file
Dependencies
None
Recommended
percona-server(see)
Example(s)
Simple
---
- hosts: all
roles:
- oefenweb.percona-client
With .my.cnf file(s)
---
- hosts: all
roles:
- oefenweb.percona-client
vars:
percona_client_my_cnf_files:
- dest: '~root/.my.cnf'
owner: root
group: root
mode: '0600'
login_host: localhost
login_port: 3306
login_user: root
login_password: 'pw4Root'
- owner: vagrant
login_password: 'pw4Vagrant'
License
MIT
Author Information
Mischa ter Smitten
Feedback, bug-reports, requests, ...
Are welcome!
ansible-galaxy install Oefenweb.percona_client