Don't install percona repository (prevent APT conflicts)

pull/14/head
Emilien Mantel 2016-09-25 13:50:30 +02:00
parent cb8a565df6
commit 2f560bda96
6 changed files with 0 additions and 13 deletions

View File

@ -15,7 +15,6 @@ Role Variables
- `mysql_origin`: origin of the package ("default" or "upstream") - `mysql_origin`: origin of the package ("default" or "upstream")
- `mysql_vendor`: "mysql", "mariadb", "mariadb\_galera" (only with MariaDB upstream 10.1) or "percona" - `mysql_vendor`: "mysql", "mariadb", "mariadb\_galera" (only with MariaDB upstream 10.1) or "percona"
- `mysql_use_percona_repository`: use percona APT repository (automatic setted to true if you use "percona" as `mysql_vendor`).
### Configuration ### Configuration

View File

@ -6,7 +6,6 @@
mysql_origin: 'default' mysql_origin: 'default'
mysql_vendor: 'mariadb' mysql_vendor: 'mariadb'
mysql_root_password: 'change_me_NOW' mysql_root_password: 'change_me_NOW'
mysql_use_percona_repository: false
# ------------------------------------- # -------------------------------------
# Configuration # Configuration

View File

@ -11,10 +11,6 @@
(mysql_origin == 'upstream' and mysql_vendor == 'percona') (mysql_origin == 'upstream' and mysql_vendor == 'percona')
) )
- name: APT | Install Percona Xtrabackup
include: percona/apt.yml
when: mysql_use_percona_repository
- 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,12 +1,7 @@
--- ---
# We prevent double include
- name: INCLUDE | Add percona APT repository - name: INCLUDE | Add percona APT repository
include: apt.yml include: apt.yml
when: not mysql_use_percona_repository
- name: SET_FACT | We use percona repository
set_fact: mysql_use_percona_repository=true
- name: DEBCONF | Prepare MySQL silent installation (root password) - name: DEBCONF | Prepare MySQL silent installation (root password)
debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password' vtype='password' value='{{ mysql_root_password }}' debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password' vtype='password' value='{{ mysql_root_password }}'

View File

@ -1,4 +1,3 @@
mysql_use_percona_repository: true
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

View File

@ -41,7 +41,6 @@
vars: vars:
mysql_galera_primary_node: 'jessie-upstream-mariadbgalera-1' mysql_galera_primary_node: 'jessie-upstream-mariadbgalera-1'
mysql_wsrep_node_address: "{{ ansible_eth1.ipv4.address }}" mysql_wsrep_node_address: "{{ ansible_eth1.ipv4.address }}"
mysql_use_percona_repository: false
mariadb_version: '10.1' mariadb_version: '10.1'
roles: roles:
- ../../ - ../../