Auto install percona apt repos if needed

pull/14/head
Emilien Mantel 2017-06-01 15:56:08 +02:00
parent 25fa21021d
commit 0f1d2bcdcf
4 changed files with 9 additions and 1 deletions

View File

@ -56,6 +56,7 @@ Check "priv" syntax in [mysql\_user module documentation](http://docs.ansible.co
- `mysql_mariadb_repository`: MariaDB upstream APT repository (see: [MariaDB repositories tool](http://mariadb.org/mariadb/repositories/)) - `mysql_mariadb_repository`: MariaDB upstream APT repository (see: [MariaDB repositories tool](http://mariadb.org/mariadb/repositories/))
- `mysql_percona_version`: 5.5 / 5.6 / 5.7 - `mysql_percona_version`: 5.5 / 5.6 / 5.7
- `mysql_percona_repository`: Percona upstream APT repository (see: [Percona APT doc](http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html)) - `mysql_percona_repository`: Percona upstream APT repository (see: [Percona APT doc](http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html))
- `mysql_use_percona_apt`: Force using Percona APT repository (useful when you want to use latest version of percona toolkits, xtrabackup... etc)
Dependencies Dependencies
------------ ------------

View File

@ -133,7 +133,7 @@ mysql_mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mysql_mari
# ------------------------------------- # -------------------------------------
mysql_percona_version: '5.6' mysql_percona_version: '5.6'
mysql_percona_repository: 'http://repo.percona.com/apt' mysql_percona_repository: 'http://repo.percona.com/apt'
mysql_use_percona_apt: false
# Galera # Galera
mysql_galera_resetup: false mysql_galera_resetup: false

View File

@ -11,6 +11,12 @@
(mysql_origin == 'upstream' and mysql_vendor == 'percona') (mysql_origin == 'upstream' and mysql_vendor == 'percona')
) )
- name: INCLUDE | Use Percona repository
include: 'percona/apt.yml'
when: >
mysql_use_percona_apt and
not (mysql_origin == 'upstream' and mysql_vendor == 'percona')
- name: INCLUDE | Install MySQL from default repo - name: INCLUDE | Install MySQL from default repo
include: 'mysql/default.yml' include: 'mysql/default.yml'
when: mysql_origin == 'default' and mysql_vendor == 'mysql' when: mysql_origin == 'default' and mysql_vendor == 'mysql'

View File

@ -1,3 +1,4 @@
mysql_bind_address: '{{ ansible_eth1.ipv4.address }}' mysql_bind_address: '{{ ansible_eth1.ipv4.address }}'
mysql_extra_configuration: mysql_extra_configuration:
innodb_commit_concurrency: 0 innodb_commit_concurrency: 0
mysql_use_percona_apt: true