Commit graph

137 commits

Author SHA1 Message Date
Gabriel Filion
19ddc07abc remove non-ascii char in comment in init.pp
Apparently puppet doesn't like ppl who don't speak English and crashes
on non-ASCII chars in comments.
2015-09-26 17:58:23 -04:00
Jerome Charaoui
491f7f4dd4 package containing ruby bindings is renamed 'ruby-mysql' in wheezy and later releases 2015-08-05 10:22:04 -04:00
Gabriel Filion
4724a15633 account_security doesn't exist anymore 2015-05-13 16:05:42 -04:00
Gabriel Filion
d69d43efa5 mysql_ibdata1 is not managed anymore but is still overridden for debian 2015-05-13 16:03:47 -04:00
Jerome Charaoui
85514f6feb Merge branch 'master' into merge_immerda_new
Conflicts:
	manifests/server/cron/backup.pp
2015-04-21 09:44:01 -04:00
Jerome Charaoui
e5a66002f3 Restore a few things that got removed:
* Manage /etc/mysql/mysql.conf.d
* Account security ensures
* Check mysql_exists before realizing ressources

These last two points partially revert commit
e1649647f3
2015-04-17 17:18:25 -04:00
Jerome Charaoui
31ecdf427d Restore parameters from optimize cronjob class 2015-04-17 11:59:40 -04:00
Gabriel Filion
35c351f926 Cron jobs are not removed when unused.
Currently, if you have the bad idea of setting backup_cron or
optimize_cron to true in the main class and later to change it back to
false, the associated cronjob will stay in place even though you don't
want it.

To make this option more consistant, let's remove cron jobs (and backup
helper scripts) when the appropriate option is set to false.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
2015-03-27 15:37:25 -04:00
Jerome Charaoui
a713d36aeb Merge branch 'master' of git://git.puppet.immerda.ch/module-mysql
Conflicts:
	files/scripts/optimize_tables.rb
	manifests/server/base.pp
2015-02-24 16:46:45 -05:00
mh
0ce33a632f we only need to ensure grants if the user is present 2015-01-25 13:48:52 +01:00
mh
e1649647f3 fix issues for EL7 + simplify account security
* EL7 uses mariadb & systemd -> adjust setpasswd script to that
* move the security ensurance to the setpassword script, as it's
  easier to ensure that there
2015-01-24 18:05:08 +01:00
mh
3820ed70a0 this should be variables 2015-01-10 11:42:33 +01:00
mh
553831bf34 on EL7 there is now mariadb 2015-01-10 01:50:39 +01:00
Gabriel Filion
102de3b0e7 Merge branch 'conf_define' 2014-03-12 16:26:32 -04:00
Gabriel Filion
84fba22bad Merge branch 'randomize_optimize' 2014-03-12 11:43:31 -04:00
Jerome Charaoui
f34882cadd Fix munin plugin class on Debian 2014-03-11 15:28:20 -04:00
Gabriel Filion
ae2fbce7ac Randomize time of execution for optimize script.
By default, time will be between midnight and 7:00 any day of the week.

The values are currently hard-coded. This can have serious I/O
repercussions on a server with multiple VMs that run mysql since they
will all run their optimizations simultaneously.
2014-03-06 18:46:06 -05:00
mh
c06abd681c add mysqltuner class 2014-02-28 14:50:17 +01:00
mh
cae3a3cbe8 fix #6638 - remove the unless check & improve script
To workaround a limitation of the exec provider within puppet, we
do the unless check no within the script itself and ensure that
we use the password there.

https://labs.riseup.net/code/issues/6638
2014-02-05 22:34:17 +01:00
Gabriel Filion
e3b382edeb conf: notify mysql service to make changes effective 2013-12-18 15:15:37 -05:00
Gabriel Filion
fc6458e9e4 manage configuration snippets in a conf.d directory
this should make it easier to override values from my.cnf, or to set
other values that aren't in the main config file.
2013-12-05 16:19:52 -05:00
mh
c38546e15f introduce the /etc/mysql/conf.d/ directory for CentOS 2013-12-05 20:14:04 +01:00
mh
6d485b1693 better use this built in fact now 2013-12-05 10:49:54 +01:00
mh
e9f0304525 this is not really necessary 2013-12-04 23:15:26 +01:00
mh
bd6abae490 some mysql versions start to display a nasty warning - http://bugs.mysql.com/bug.php?id=68376 2013-05-03 11:55:41 +02:00
mh
6d9a846867 introduce helpers for mysql backups 2013-02-19 10:12:35 +01:00
Gabriel Filion
fc1210bea8 Too much linting for facts
ng brought a problem with my latest linting commit:

facts are _always_ strings, so unquoting the value that we're testing
against is actually wrong, even though puppet-lint complains.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2013-02-18 16:16:35 -05:00
Gabriel Filion
d456d0280f lint mysql::server 2013-01-16 03:30:44 +01:00
mh
9c455bb3a1 fix typo 2013-01-02 18:54:51 +01:00
mh
c1c3b11245 make trocla an optional dependency 2013-01-02 18:48:49 +01:00
mh
8a96ea5cf0 Merge remote-tracking branch 'riseup/master'
Conflicts:
	manifests/client.pp
	manifests/server.pp
	manifests/server/base.pp
	manifests/server/cron/backup.pp
	manifests/server/munin/default.pp
	manifests/server/nagios.pp
2013-01-02 17:25:51 +01:00
mh
33241a38d2 linting 2013-01-02 17:13:45 +01:00
mh
dd6c24844b Merge remote-tracking branch 'shared/master'
Conflicts:
	files/config/my.cnf.Debian
	manifests/server/base.pp
	manifests/server/munin/default.pp
	manifests/server/nagios.pp
2013-01-02 17:03:18 +01:00
mh
35b62c1b3d some need the password not quoted... 2012-12-10 11:01:28 +01:00
mh
c9fda13929 simplify and correct dependencies
1. it is important that the root password works
2. we don't need to chain the dependencies
2012-12-09 16:03:39 +01:00
mh
7b2a72a976 document intend of refreshonyl for setting root pw 2012-12-09 16:01:02 +01:00
mh
de7cb43faa fix dependency issues 2012-12-09 15:52:34 +01:00
mh
828d52e667 woraround a puppet provider bug 2012-12-09 15:12:19 +01:00
mh
53d1455aa5 linting 2012-12-06 23:09:44 +01:00
Micah Anderson
9465f48a65 2.7 underscore rename: site-mysql 2012-06-27 15:47:24 -04:00
mh
60ec42a15f fix typo 2012-06-17 16:50:08 -03:00
mh
59ec83a3cc take hiera out of the params 2012-06-14 15:02:17 -03:00
mh
956edf58cc take hiera out of the params 2012-06-14 14:53:44 -03:00
o
01ab6a5315 some more hiera variables removed 2012-06-14 11:33:31 -03:00
o
cd68caf662 remove hiera 2012-06-13 20:22:45 -03:00
mh
e4ca510b7c refactor things for >2.7 2012-06-08 13:04:06 -03:00
mh
7f4ae6753f use correct backup location
Up to now we used an empty backup location... :/
2012-05-14 10:29:52 +02:00
mh
1f0784b73e Merge remote-tracking branch 'laurantb/master'
Conflicts:
	manifests/server/cron/backup.pp
2012-04-29 12:55:07 +02:00
Micah Anderson
9e22feaca0 fix another trivial syntax error 2012-04-18 11:36:09 -04:00
Micah Anderson
a30637ad2e fix syntax error 2012-04-18 11:30:36 -04:00