From 8c3cc0400fa6b8866d85ebaad6c5bf2fb18671b9 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 23 Sep 2016 17:54:35 +0200 Subject: [PATCH 1/4] Add Travis closes #4 --- .travis.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..11a8813 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i localhost, --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/README.md b/README.md index 601a7d6..7ec0c4b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ MySQL vendors for Debian Ansible role ====================================== -[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.mysql-blue.svg)](https://galaxy.ansible.com/HanXHX/mysql) +[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.mysql-blue.svg)](https://galaxy.ansible.com/HanXHX/mysql) [![Build Status](https://travis-ci.org/HanXHX/ansible-mysql.svg?branch=master)](https://travis-ci.org/HanXHX/ansible-mysql) Install and configure MySQL or MariaDB or Percona Server. Manage replication (master/slave). Create users and databases. From 5dc5c42214af9621b5b9985e97d8bb405bc2e528 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 23 Sep 2016 18:00:33 +0200 Subject: [PATCH 2/4] Manage MariaDB 10.2 + Percona server 5.7 --- README.md | 4 ++-- defaults/main.yml | 4 ++-- tests/README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7ec0c4b..6aab0bd 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,9 @@ Check "priv" syntax in [mysql_user module documentation](http://docs.ansible.com ### Packaging -- `mariadb_version`: 10.0/10.1 +- `mariadb_version`: 10.0 / 10.1 / 10.2 - `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`: 5.5 / 5.6 / 5.7 - `percona_repository`: Percona upstream APT repository (see: [Percona APT doc](http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html)) Dependencies diff --git a/defaults/main.yml b/defaults/main.yml index 8236b40..71df36e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -126,12 +126,12 @@ mysql_users: [] # ------------------------------------- # MariaDB # ------------------------------------- -mariadb_version: '10.0' # (5.5, 10.0) +mariadb_version: '10.1' # See: http://mariadb.org/mariadb/repositories/ mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mariadb_version }}/debian" # ------------------------------------- # Percona # ------------------------------------- -percona_version: '5.6' +percona_version: '5.7' percona_repository: 'http://repo.percona.com/apt' diff --git a/tests/README.md b/tests/README.md index c050cf9..af7c9c3 100644 --- a/tests/README.md +++ b/tests/README.md @@ -32,9 +32,9 @@ Supported platforms Supported MySQL vendors ----------------------- -- MariaDB 10.0 (from Debian Jessie or MariaDB repository) +- MariaDB 10.0 / 10.1 / 10.2 (from Debian Jessie or MariaDB repository) - MySQL 5.5 (from Debian repositories) -- Percona Server 5.6 (from Percona Repository) +- Percona Server 5.5 / 5.6 / 5.7 (from Percona Repository) About MySQL 5.6 --------------- From c8e77c95e717498abaf61b91568b22184a176163 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 23 Sep 2016 18:01:20 +0200 Subject: [PATCH 3/4] Useless file --- vars/main.yml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 vars/main.yml diff --git a/vars/main.yml b/vars/main.yml deleted file mode 100644 index a4ce68b..0000000 --- a/vars/main.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- - -default_mysql: true -mariadb_mariadb: true -percona_percona: true - -percona_available_versions: - - '5.5' - - '5.6' From ff6e52277142761719c764b09cb58e78a8147c66 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 23 Sep 2016 18:02:55 +0200 Subject: [PATCH 4/4] MariaDB is stable :) --- tests/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/README.md b/tests/README.md index af7c9c3..918f34a 100644 --- a/tests/README.md +++ b/tests/README.md @@ -41,7 +41,3 @@ About MySQL 5.6 You can get MySQL 5.6 for Debian with [Dotdeb](https://www.dotdeb.org) with my [Dotdeb role](https://github.com/HanXHX/ansible-debian-dotdeb). I give no support with this version (pull-request accepted). It can work but without GTID. -About MariaDB 10.1 ------------------- - -When the application is considered stable, I'll support this version.