Auto install percona apt repos if needed
parent
25fa21021d
commit
0f1d2bcdcf
|
@ -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_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_use_percona_apt`: Force using Percona APT repository (useful when you want to use latest version of percona toolkits, xtrabackup... etc)
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
|
|
@ -133,7 +133,7 @@ mysql_mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mysql_mari
|
|||
# -------------------------------------
|
||||
mysql_percona_version: '5.6'
|
||||
mysql_percona_repository: 'http://repo.percona.com/apt'
|
||||
|
||||
mysql_use_percona_apt: false
|
||||
|
||||
# Galera
|
||||
mysql_galera_resetup: false
|
||||
|
|
|
@ -11,6 +11,12 @@
|
|||
(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
|
||||
include: 'mysql/default.yml'
|
||||
when: mysql_origin == 'default' and mysql_vendor == 'mysql'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
mysql_bind_address: '{{ ansible_eth1.ipv4.address }}'
|
||||
mysql_extra_configuration:
|
||||
innodb_commit_concurrency: 0
|
||||
mysql_use_percona_apt: true
|
||||
|
|
Loading…
Reference in New Issue