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 eadb43d..61ca8d9 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. @@ -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 3b7fefa..78fd71a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -126,14 +126,14 @@ 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..918f34a 100644 --- a/tests/README.md +++ b/tests/README.md @@ -32,16 +32,12 @@ 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 --------------- 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. 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'