ansible-roles/mysql
Gabriel Periard-Tremblay 87ebadcadd Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
..
defaults Mysql: cron frequency can be changed 2017-05-19 23:06:12 +02:00
files mysql: fix my-add.sh when no password 2017-01-12 15:15:26 +01:00
handlers ajoute un rôle mysql 2016-12-21 16:12:01 +01:00
meta Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
tasks mysql: remount /usr if needed 2017-05-23 15:11:11 +02:00
templates Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00
tests Add tests for many roles 2017-05-18 15:44:21 +02:00
vars mysql: mysql_variant=[oracle/mariadb] 2017-01-05 12:03:53 +01:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md MySQL: document missing variables in README 2017-04-05 12:14:30 +02:00

README.md

mysql

Install MySQL

Tasks

Tasks are extracted in several files, included in tasks/main.yml :

  • packages.yml : packages installation ;
  • users.yml : replacement of root user by mysqladmin user ;
  • config.yml : configurations ;
  • datadir.yml : data directory customization ;
  • tmpdir.yml : temporary directory customization ;
  • nrpe.yml : nrpe user for Nagios checks ;
  • munin.yml : Munin plugins ;
  • log2mail.yml : log2mail patterns ;
  • utils.yml : useful tools.

Available variables

  • mysql_variant : install Oracle's MySQL or MariaDB (default: oracle) ;
  • mysql_replace_root_with_mysqladmin: switch from root to mysqladmin user or not ;
  • mysql_thread_cache_size: number of threads for the cache ;
  • mysql_innodb_buffer_pool_size: amount of RAM dedicated to InnoDB ;
  • mysql_custom_datadir: custom datadir
  • mysql_custom_tmpdir: custom tmpdir.
  • general_alert_email: email address to send various alert messages (default: root@localhost).
  • log2mail_alert_email: email address to send Log2mail messages to (default: general_alert_email).
  • general_scripts_dir: general directory for scripts installation (default: /usr/local/bin).
  • mysql_scripts_dir: email address to send Log2mail messages to (default: general_scripts_dir).
  • mysql_force_new_nrpe_password : change the password for NRPE even if it exists already (default: False).

NB : changing the datadir location can be done multiple times, as long as it is not restored to the default initial location, (because a symlink is created and can't be switched back, yet).