Drop wheezy support

pull/14/head
Emilien Mantel 2016-09-23 09:38:19 +02:00
parent 838c787986
commit 5e38bc02a0
10 changed files with 5 additions and 29 deletions

View File

@ -15,7 +15,7 @@ Role Variables
- `mysql_origin`: origin of the package ("default" or "upstream") - `mysql_origin`: origin of the package ("default" or "upstream")
- `mysql_vendor`: "mysql", "mariadb" or "percona" - `mysql_vendor`: "mysql", "mariadb" or "percona"
- `mysql_use_percona_repository`: use percona APT repository (automatic setted to true if you use "percona" as `mysql_vendor`). You need to set "true" on Wheezy if you want to install percona-xtrabackup. - `mysql_use_percona_repository`: use percona APT repository (automatic setted to true if you use "percona" as `mysql_vendor`).
### Configuration ### Configuration
@ -46,7 +46,7 @@ Check "priv" syntax in [mysql_user module documentation](http://docs.ansible.com
### Packaging ### Packaging
- `mariadb_version`: 5.5 (Debian Wheezy only) or 10.0 - `mariadb_version`: 10.0/10.1
- `mariadb_repository`: MariaDB upstream APT repository (see: [MariaDB repositories tool](http://mariadb.org/mariadb/repositories/)) - `mariadb_repository`: MariaDB upstream APT repository (see: [MariaDB repositories tool](http://mariadb.org/mariadb/repositories/))
- `percona_version`: Percona version 5.5 or 5.6 - `percona_version`: Percona version 5.5 or 5.6
- `percona_repository`: Percona upstream APT repository (see: [Percona APT doc](http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html)) - `percona_repository`: Percona upstream APT repository (see: [Percona APT doc](http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html))

6
Vagrantfile vendored
View File

@ -6,12 +6,6 @@
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
vms = [ vms = [
["wheezy-default-mysql-master", "deb/wheezy-amd64", "192.168.200.10", ["wheezy","default","mysql","master"]],
["wheezy-default-mysql-slave", "deb/wheezy-amd64", "192.168.200.11", ["wheezy","default","mysql","slave"]],
["wheezy-upstream-mariadb-master", "deb/wheezy-amd64", "192.168.200.12", ["wheezy","upstream","mariadb","master"]],
["wheezy-upstream-mariadb-slave", "deb/wheezy-amd64", "192.168.200.13", ["wheezy","upstream","mariadb","slave"]],
["wheezy-upstream-percona-master", "deb/wheezy-amd64", "192.168.200.14", ["wheezy","upstream","percona","master"]],
["wheezy-upstream-percona-slave", "deb/wheezy-amd64", "192.168.200.15", ["wheezy","upstream","percona","slave"]],
["jessie-default-mysql-master", "debian/jessie64", "192.168.200.16", ["jessie","default","mysql","master"]], ["jessie-default-mysql-master", "debian/jessie64", "192.168.200.16", ["jessie","default","mysql","master"]],
["jessie-default-mysql-slave", "debian/jessie64", "192.168.200.17", ["jessie","default","mysql","slave"]], ["jessie-default-mysql-slave", "debian/jessie64", "192.168.200.17", ["jessie","default","mysql","slave"]],
["jessie-upstream-mariadb-master", "debian/jessie64", "192.168.200.18", ["jessie","upstream","mariadb","master"]], ["jessie-upstream-mariadb-master", "debian/jessie64", "192.168.200.18", ["jessie","upstream","mariadb","master"]],

View File

@ -8,7 +8,6 @@ galaxy_info:
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- wheezy
- jessie - jessie
galaxy_tags: galaxy_tags:
- database - database

View File

@ -5,7 +5,7 @@
when: > when: >
not ( not (
(mysql_origin == 'default' and mysql_vendor == 'mysql') or (mysql_origin == 'default' and mysql_vendor == 'mysql') or
(mysql_origin == 'default' and mysql_vendor == 'mariadb' and ansible_distribution_major_version > 7) or (mysql_origin == 'default' and mysql_vendor == 'mariadb') or
(mysql_origin == 'upstream' and mysql_vendor == 'mariadb') or (mysql_origin == 'upstream' and mysql_vendor == 'mariadb') or
(mysql_origin == 'upstream' and mysql_vendor == 'percona') (mysql_origin == 'upstream' and mysql_vendor == 'percona')
) )
@ -20,7 +20,7 @@
- name: INCLUDE | Install MariaDB from Debian repo - name: INCLUDE | Install MariaDB from Debian repo
include: 'mariadb/default.yml' include: 'mariadb/default.yml'
when: mysql_origin == 'default' and mysql_vendor == 'mariadb' and ansible_distribution_major_version > 7 when: mysql_origin == 'default' and mysql_vendor == 'mariadb'
- name: INCLUDE | Install MariaDB from MariaDB repo - name: INCLUDE | Install MariaDB from MariaDB repo
include: 'mariadb/upstream.yml' include: 'mariadb/upstream.yml'
@ -40,5 +40,3 @@
- name: APT | Install Percona Xtrabackup - name: APT | Install Percona Xtrabackup
apt: pkg=percona-xtrabackup state=present apt: pkg=percona-xtrabackup state=present
when: ansible_distribution_major_version > 7 or mysql_use_percona_repository

View File

@ -5,10 +5,9 @@ IMPORTANT
--------- ---------
- DO NOT `vagrant up`! My Vagrantfile provides 14 VMs (256MB each)... - DO NOT `vagrant up`! My Vagrantfile provides 14 VMs (256MB each)...
- Each slave communicate to his master. You can't mix jessie and wheezy or mysql and mariadb. - Each slave communicate to his master. You can't mix mysql and mariadb.
- This tests uses my [MySQL role](https://github.com/HanXHX/ansible-mysql). - This tests uses my [MySQL role](https://github.com/HanXHX/ansible-mysql).
Tests Tests
----- -----
@ -28,7 +27,6 @@ vagrant up jessie-upstream-mariadb-slave
Supported platforms Supported platforms
------------------- -------------------
- Debian Wheezy
- Debian Jessie - Debian Jessie
Supported MySQL vendors Supported MySQL vendors

View File

@ -1,4 +0,0 @@
FROM williamyeh/ansible:debian7-onbuild
RUN apt-get update
CMD ["sh", "tests/test.sh"]

View File

@ -9,12 +9,6 @@ use warnings;
use Socket; use Socket;
my @a = ( my @a = (
"wheezy-default-mysql-master",
"wheezy-default-mysql-slave",
"wheezy-upstream-mariadb-master",
"wheezy-upstream-mariadb-slave",
"wheezy-upstream-percona-master",
"wheezy-upstream-percona-slave",
"jessie-default-mysql-master", "jessie-default-mysql-master",
"jessie-default-mysql-slave", "jessie-default-mysql-slave",
"jessie-upstream-mariadb-master", "jessie-upstream-mariadb-master",

View File

@ -1 +0,0 @@
his_master: '192.168.200.10'

View File

@ -1 +0,0 @@
his_master: '192.168.200.12'

View File

@ -1 +0,0 @@
his_master: '192.168.200.14'