Update somie comments

pull/29/head
Emilien Mantel 2018-03-17 18:47:35 +01:00
parent 0b0e395072
commit adf9e6074f
6 changed files with 9 additions and 10 deletions

View File

@ -1,9 +1,9 @@
MySQL vendors for Debian Ansible role MariaDB (MySQL) Ansible role for Debian
====================================== =======================================
[![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) [![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 (Galera Cluster) or Percona Server. Manage replication (master/slave). Create users and databases. Install and configure MariaDB (Galera Cluster). Manage replication (master/slave). Create users and databases.
| OS | Vendor | Origin | Managed versions | | OS | Vendor | Origin | Managed versions |
| --------------- | ----------------------- | --------- | ------------------------- | | --------------- | ----------------------- | --------- | ------------------------- |
@ -14,7 +14,6 @@ Install and configure MySQL or MariaDB (Galera Cluster) or Percona Server. Manag
Notes Notes
----- -----
* MySQL server no longer exists on Debian Stretch
* Galera Cluster is experimental * Galera Cluster is experimental
* Due to Vagrant + Docker limitation (private network), replication/galera can't be checked with Travis * Due to Vagrant + Docker limitation (private network), replication/galera can't be checked with Travis
* If you need to test this role with Vagrant, you must install hostmanager plugin: `vagrant plugin install vagrant-hostmanager` * If you need to test this role with Vagrant, you must install hostmanager plugin: `vagrant plugin install vagrant-hostmanager`

View File

@ -14,10 +14,10 @@ mariadb_manage_logrotate: true
# Configuration # Configuration
# ------------------------------------- # -------------------------------------
# MySQL configuration template # MariaDB configuration template
mariadb_config_template: 'etc/mysql/my.cnf.j2' mariadb_config_template: 'etc/mysql/my.cnf.j2'
# MySQL connection settings. # MariaDB connection settings.
mariadb_port: "3306" mariadb_port: "3306"
mariadb_bind_address: '127.0.0.1' mariadb_bind_address: '127.0.0.1'
mariadb_datadir: '/var/lib/mysql' mariadb_datadir: '/var/lib/mysql'

View File

@ -12,7 +12,7 @@
include: 'mariadb/upstream.yml' include: 'mariadb/upstream.yml'
when: mariadb_origin == 'upstream' when: mariadb_origin == 'upstream'
- name: APT | Install few MySQL related tools - name: APT | Install few MariaDB related tools
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
install_recommends: no install_recommends: no

View File

@ -9,7 +9,7 @@
mode: stopslave mode: stopslave
- name: COMMAND | Migrate to MariaDB GTID - name: COMMAND | Migrate to MariaDB GTID
command: mysql -e "CHANGE MASTER TO master_use_gtid=current_pos"; command: mariadb -e "CHANGE MASTER TO master_use_gtid=current_pos";
- name: MYSQL_REPLICATION | Start slave - name: MYSQL_REPLICATION | Start slave
mysql_replication: mysql_replication:

View File

@ -32,7 +32,7 @@
mariadb_datadir: "{{ datadir.msg }}" mariadb_datadir: "{{ datadir.msg }}"
mariadb_binlog_info: "{{ datadir.msg }}/xtrabackup_binlog_info" mariadb_binlog_info: "{{ datadir.msg }}/xtrabackup_binlog_info"
- name: SERVICE | Stop MySQL before importing data - name: SERVICE | Stop MariaDB before importing data
service: service:
name: mysql name: mysql
state: stopped state: stopped

View File

@ -26,7 +26,7 @@
register: ip register: ip
changed_when: false changed_when: false
- set_fact: - set_fact:
# MySQL don't read /etc/hosts (from vagrant host plugin) # MariaDB don't read /etc/hosts (from vagrant host plugin)
mariadb_replication_host: "{{ ip.stdout }}" mariadb_replication_host: "{{ ip.stdout }}"
# Need this to use vagrant 'delegate_to' # Need this to use vagrant 'delegate_to'
mariadb_slave_import_from: "{{ ansible_hostname | replace ('slave', 'master') }}" mariadb_slave_import_from: "{{ ansible_hostname | replace ('slave', 'master') }}"