Commit graph

102 commits

Author SHA1 Message Date
Jérémy Lecour b81ef36f92 mysql: remount /usr (if needed) before creating scripts directory 2018-03-14 09:33:14 +01:00
Jérémy Lecour 3d5c004d8a mysql: parameterize evolinux config files
The tmpdir task was not using the right file.
We use a variable for those files, to hemp with maintenance ans
customization.
2017-11-29 10:02:02 +01:00
Jérémy Lecour 690e44ac5d mysql: check_mode for nrpe password 2017-11-26 18:58:39 +01:00
Jérémy Lecour 1d68340b3b mysql: better support for check mode 2017-11-14 09:39:24 +01:00
Victor LABORIE 1c48df025c Move /usr rw remount into remount-usr role 2017-11-07 13:34:05 +01:00
Jérémy Lecour 172b21b613 mysql: add more Munin plugins 2017-10-20 10:25:34 +02:00
Ludovic Poujol 745c45f88d Fix remount_usr_rw/yml 2017-10-11 17:58:18 +02:00
Jérémy Lecour 95c34c5d88 MySQL: "REPLICATION CLIENT" privilege for nrpe 2017-09-20 11:33:27 +02:00
Gregory Colpart a5e76c5248 Fix error in handlers filename. 2017-09-18 21:46:27 +02:00
Jérémy Lecour b41c4f1567 mysql: custom config file must be world readable 2017-09-15 11:30:08 +02:00
Gregory Colpart 0e89d5ea56 Add files for MariaDB 2017-09-14 22:04:33 +02:00
Gregory Colpart 8e4d7e484a wording 2017-09-14 19:34:04 +02:00
Gregory Colpart ba7c7e0927 add systemd override for MariaDB 2017-09-14 19:32:24 +02:00
Gregory Colpart d4a47346ef In Stretch, we have now /etc/mysql/mariadb.conf.d/ dir then we need use it for our conf files 2017-09-01 04:00:51 +02:00
Gregory Colpart d1b290f864 Typos + add info 2017-09-01 04:00:13 +02:00
Gregory Colpart 64c1dc3d45 Fix mytop install with https://wiki.evolix.org/HowtoMySQL#mytop 2017-08-31 04:40:49 +02:00
Gregory Colpart 8dbe8bf4ac Quick fix because MySQL install doesn't work anymore on Stretch 2017-08-18 05:06:23 +02:00
Gregory Colpart 2bb7367edf standardization for Debian versions : we use "jessie" or "9 or later" to prepare buster smoothly as possible 2017-08-18 03:50:30 +02:00
Jérémy Lecour d15bcc168e mysql: fix mysql optimize tasks 2017-08-12 12:25:47 -04:00
Jérémy Lecour 574cf3ab44 mysql: install mysqltuner from packages 2017-08-12 12:25:47 -04:00
Jérémy Lecour 7d8c198849 mysql: split packages tasks by release 2017-08-12 12:25:47 -04:00
Jérémy Lecour a857045661 mysql: use apg for passwords 2017-08-12 12:25:47 -04:00
Jérémy Lecour 213ad5a606 mysql: log2mail config is owned by log2mail group 2017-08-12 12:25:47 -04:00
Jérémy Lecour 1b32be19c0 mysql script directory is a variable 2017-08-12 11:39:33 -04:00
Jérémy Lecour 9269f1e50d Merge branch 'mariadb-fix-munin-plugin' into unstable 2017-07-20 11:00:24 +02:00
Benoît S. 499b2c7def Added a perl mandatory package
If not installed: install_driver(mysql) failed: Can't locate DBD/mysql.pm in
@INC (you may need to install the DBD::mysql module)
2017-07-20 10:43:13 +02:00
Jérémy Lecour 927dbfa889 MySQL: adapt users on distribution
For Jessie, there is a "debian-sys-maint", that we're using to create "mysqladmin" for root, then delete "root".

For Stretch, the is a "root" without assword, so we create both "mysqladmin" for root and "debian-sys-maint" for Debian scripts, then delete "root".
2017-07-13 14:09:33 +02:00
Jérémy Lecour 0481c51a40 mysql: use /etc/mysql/debian.cnf for configuration 2017-06-12 15:11:40 +02:00
Jérémy Lecour 65f91f09b0 Disable warnings for mount commands related to /usr read-only 2017-06-12 15:11:40 +02:00
Jérémy Lecour be0fa9176b mysql: add some ansible tags 2017-06-09 09:06:33 +02:00
Jérémy Lecour 37ef790d57 mysql: remount /usr if needed 2017-05-23 15:11:11 +02:00
Jérémy Lecour f45d7ded46 Mysql: cron frequency can be changed 2017-05-19 23:06:12 +02:00
Jérémy Lecour 9fae99f8dc Minor syntax and whitespaces fixes 2017-05-19 22:29:53 +02:00
Jérémy Lecour de9d4080cb whitespaces 2017-04-19 10:59:25 +02:00
Jérémy Lecour b9172350ff Mysql: store NRPE credentials in secure file 2017-04-05 12:10:19 +02:00
Jérémy Lecour 5b2ab0d8d3 Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
Jérémy Lecour 294cea44e8 Change mode with leading 0, but still as String 2017-03-23 16:59:43 +01:00
Jérémy Lecour 8920ff1ee4 Add "always_run: yes" where it's pertinent
There is also the "check_mode: no", but commented,
for when we switch to Ansible 2.2
2017-01-31 11:45:35 +01:00
Jérémy Lecour 478e9a8272 replace "state: installed" with "state: present" 2017-01-12 17:37:48 +01:00
Jérémy Lecour d91b317a50 Install "apg" package where needed 2017-01-12 17:36:59 +01:00
Jérémy Lecour 5a4f838375 Unix mode MUST be a quoted string when using octal notation 2017-01-05 12:03:54 +01:00
Jérémy Lecour 1f29cc14dc mysql: mysql_variant=[oracle/mariadb] 2017-01-05 12:03:53 +01:00
Jérémy Lecour 15d1b4d6fe MySQL: enable/disable optimize script in weekly crontab 2017-01-03 09:39:31 +01:00
Jérémy Lecour c0ab8f99ce Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00
Gregory Colpart 959c6a02a7 Generate zzz_evolinux.cnf only during the first install 2016-12-21 16:12:28 +01:00
Gregory Colpart 55433ffc38 s/true/True/ ; s/false/False/ 2016-12-21 16:12:28 +01:00
Gregory Colpart e259c1aaea we don't want == True 2016-12-21 16:12:28 +01:00
Gregory Colpart d0ee40d271 Use new conventions for custom config 2016-12-21 16:12:28 +01:00
Gregory Colpart 932812117f as soon as we will use Ansible >= 2.1, we will improve task "remove root user" with host_all: yes 2016-12-21 16:12:28 +01:00
Gregory Colpart a733f8a369 Add mariadb flavor 2016-12-21 16:12:28 +01:00
Jérémy Lecour d510f8aee8 Mysql: all hosts must be removed manually
Until Ansible 2.1 we have to loop over all hosts when deleting the root user
2016-12-21 16:12:24 +01:00
Jérémy Lecour 452df44f03 ajoute un rôle mysql
Installation de MySQL, une configuration type Evolix et quelques outils.
Permet le déplacement du datadir (avec restart).
2016-12-21 16:12:01 +01:00