Commit graph

179 commits

Author SHA1 Message Date
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
9b327191c7 Merge branch 'document_nagios_custom_logic' into 'master'
Document nagios custom logic

Add some note for ppl who need to inject their own logic before creating nagios-related checks.

See merge request !1
2015-02-20 22:40:18 +00:00
Gabriel Filion
a2d32440d0 README: mention why using manage_nagios can be used for inserting logic
If you need to avoid creating certain nagios checks for some reason
that's specific to your local policies, you can avoid letting the module
from automatically managing nagios services and then include it whenever
you need it.
2015-02-20 16:24:45 -05:00
Gabriel Filion
a38a833167 README: fix variable name for nagios
Documentation mentions something but the manifests use another name for
the variable.
2015-02-20 16:14:43 -05:00
Gabriel Filion
0f817282af Merge branch 'mention_path' 2014-03-12 16:26:42 -04:00
Gabriel Filion
102de3b0e7 Merge branch 'conf_define' 2014-03-12 16:26:32 -04:00
Gabriel Filion
b06570a940 Document the new define in the README
Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
2014-03-12 16:25:58 -04:00
Gabriel Filion
84fba22bad Merge branch 'randomize_optimize' 2014-03-12 11:43:31 -04:00
Jerome Charaoui
8fbc1b33ee Fix command output capturing in optimize_tables.rb for Ruby 1.9 2014-03-11 17:57:03 -04:00
Jerome Charaoui
f34882cadd Fix munin plugin class on Debian 2014-03-11 15:28:20 -04:00
Gabriel Filion
a5754aa802 document the new arguments for setting optimize run time 2014-03-06 18:52:57 -05: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
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
Gabriel Filion
3c93ba2339 setmysqlpass: be more careful before plundering into action
Since this script is rooting the database, it'd be good to use a little
more precaution so that we don't let systems be in an inconsistent case
when crashing.

In cases where the PATH variable is not appropriately set (variable is
empty by default when script is invoked by puppet) the script shuts down
mysql and then is not able to call most commands.
2013-11-15 04:07:28 -05:00
Gabriel Filion
82cf365b2c README: Mention the need for setting the path appropriately
Without at least /sbin, /bin, /usr/sbin and /usr/bin, the
setmysqlpass.sh script won't run correctly and the module will not set
the requested root password.
2013-11-15 01:15:59 -05: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
2e57128b06 mysql 5.0 does not yet know about :trigger_priv 2013-01-02 18:19:06 +01:00
mh
6d75999d6a get rid off trailing , 2013-01-02 18:18:39 +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
9db98da33c fix trocla function lookup in template, without this, you get:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template mysql/root/my.cnf.erb: undefined method `function_trocla' for #<Puppet::Parser::Scope:0xf6457e2c> at /etc/puppet/modules/mysql/manifests/server/base.pp:50 on node
2012-04-18 13:26:57 -04: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
Micah Anderson
05e97ab820 Merge remote-tracking branch 'lelutin/nagios_service' into shared 2012-04-11 18:28:15 -04:00
Micah Anderson
ad04b1fbe7 Merge remote-tracking branch 'lelutin/squeeze_my_cnf' into shared 2012-04-11 18:25:17 -04:00
Micah Anderson
27773b88a5 fix $use_munin hiera check to be use_munin instead of incorrect use_nagios
add $use_nagios hiera check
2012-04-11 12:59:33 -04:00
Gabriel Filion
8180e27115 Import my.cnf from Debian Squeeze
Lenny support was phased out and squeeze is the current stable.

There is an instruction in the file that originally came from lenny:
skip-bdb doesn't exist anymore in the mysql version in squeeze, so the
config file makes a fresh mysql install crash on Squeeze.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-09 02:26:23 -04:00
Micah Anderson
a55ce915da switch hiera to pull its variables in parameterized classes instead of inline in the manifest 2012-04-04 17:47:13 -04:00
Micah Anderson
32fdce32d9 add note to README about mysql::server::account_security removing accounts by default, and how to get around it 2012-04-04 13:42:11 -04:00