Commit graph

108 commits

Author SHA1 Message Date
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
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
mh
64e116cfb5 correct key for trocla lookup 2012-02-10 15:04:40 +01:00
mh
4ac7369515 migrate everything to hiera/trocla and use the new scoping style 2012-02-10 14:35:19 +01:00
mh
a72ab41660 add innodb_file_per_table option by default
mysql has one innodb file per default and this can become very
huge, which can trigger various issues [1]. So in general it
is recommended to set the innodb_file_per_table option [2].

[1] http://forums.mysql.com/read.php?35,121880,121886
[2] http://dev.mysql.com/doc/refman/5.0/en/innodb-multiple-tablespaces.html
2012-01-17 22:31:44 +01:00
mh
8e18c75911 add admin_user define with trocla 2011-10-27 23:28:10 +02:00
mh
8ff5e446d6 make it possible to retrieve password from trocla 2011-10-18 02:55:10 +02:00
mh
585cbc381b fix grant on newer mysql version
MySQL introduced some new privileges in Versions > 5.1.6, add them
to our set, so puppet still knows what :all is.
2011-05-12 22:13:37 +02:00
mh
b8b6705865 we should pass the architecture to devel packages 2011-04-03 12:50:25 +02:00
Laurent Bachelier
fb1ec5b777 --all is deprecated 2011-03-18 17:51:34 +01:00
Laurent Bachelier
27c37a5b1b BDB is not compiled anymore on Debian systems
It would make the daemon fail to load if put in the config.
2011-03-17 15:55:13 +01:00
mh
d31940e3f0 Remove other default accounts due to security reasons 2011-02-25 17:27:19 +01:00
mh
995a291afa improve default database define to also support setting db and user to absent 2011-02-14 19:30:18 +01:00
mh
356fdab814 add some other mysql plugins 2010-12-21 22:10:34 +01:00
Gabriel Filion
e894ddb718 Avoid root password leak to process list
The current procedure of setting the root MySQL password leaks the root
password by giving it to the setmysqlpass.sh script on the command line.
This means that during the couple of seconds that the script is
executing, the password is visible in the process list!

Since we're already writing the password in the /root/.my.cnf file, make
the setmysqlpass.sh script parse this file to retrieve the password
instead of receiving it from a command line argument.

Also, in some shells the 'echo' command might appear in the process
list. Use a heredoc notation to create the output without using a
command.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-12-18 12:50:17 +01:00
Micah Anderson
fa67257056 . remove the check_mysql_health script from the mysql module, instead it belongs in the nagios module
. change the default nagios::service::mysql check to use the check_mysql_health 'connection-time' check mode, which is identical to the original check, with some additional information

. stop using nagios::plugin::deploy because this doesn't work when more than one node attempts to realize this class

. stop exporting the nagios_command because this doesn't work when more than one node attempts to realize this class

. remove the check_health define, instead this be how it was before, as the previous nagios::service::mysql define
2010-10-18 20:52:42 -04:00
Micah Anderson
f52a66ea0e change the default $check_hostname variable to be the localhost interface. This seems to make more sense than using $fqdn 2010-10-18 15:50:26 -04:00
Micah Anderson
32fa53a593 add a README which describes all the functionality, how to use it, and the pre-requisites necessary for the module 2010-10-17 19:02:06 -04:00
Micah Anderson
6031165200 simplify the nagios check_mysql_health plugin process:
1. use the new plugin deploy feature in nagios (nagios::plugin::deploy)
2. remove unnecessary classes and inheritance - this plugin seems reasonable to install by default, and in fact it could be argued that the other 'check_mysql' plugin that still remains can be removed, as its functionality is vastly overshadowed by this one
3. add the 'repl_client_priv' mysql grant privs to the nagios user. these are needed for the check_mysql_health plugin slave replication modes. According to http://dev.mysql.com/doc/refman/5.0/en/privileges-provided.html#priv_replication-client - The REPLICATION CLIENT privilege enables the use of SHOW MASTER STATUS and SHOW SLAVE STATUS. These privileges are not too much to provide to the nagios user, as they are only informational
4. setup the define "check_health" so it can be used easily
2010-10-17 18:23:42 -04:00
Micah Anderson
9463479afa add new version of check_mysql_health plugin 2010-10-17 14:30:59 -04:00
Micah Anderson
784bd6271f add a more advanced mysql health check plugin:
* create a mysql::server::nagios::base class with the common parts needed for the basic plugin, and the health plugin
 * make mysql::server:nagios inherit mysql::server:nagios::base
 * create a new class mysql::server::nagios::check_health inheriting ::base

the nagios module has also received a new define to setup the different nagios::service pieces for the different health check modes that might be desired

its assumed you would setup the different health check modes in site-mysql/init.pp as different hosts will require different modes and/or parameters, for example:

class site-mysql::server {
  include mysql::server::nagios::check_health

  nagios::service::mysql_health { [ 'connection-time', 'uptime', 'threads-connected', 'threadcache-hitrate' ]:
    require => Mysql_grant[$nagios_mysql_user],
  }

  case $hostname {
    "eider": {
      nagios::service::mysql_health { [ 'slave-io-running', 'slave-sql-running', 'slave-lag' ]:
    require => Mysql_grant[$nagios_mysql_user],
      }
    }
  }
}
2010-09-27 13:18:51 -04:00
Micah Anderson
c4fa879120 fixing merge error which removed a / -- round 2 2010-09-22 19:50:01 -04:00
Micah Anderson
892a2c5f63 fixing merge error which removed a / 2010-09-22 19:38:17 -04:00
Micah Anderson
7b1d2925b9 fix pathing, its /usr not /user 2010-09-22 19:31:06 -04:00
Micah Anderson
a3e7b031a3 Merge remote branch 'remotes/immerda/master'
Conflicts:
	manifests/server/base.pp
2010-09-22 13:12:51 -04:00
Micah Anderson
316e752933 remove license reference from init.pp, as there is no LICENSE file to be referenced 2010-09-22 12:57:16 -04:00
Micah Anderson
eaf52f77a3 increase timeout before killing to account for slower startup speed of larger databases 2010-09-22 12:55:10 -04:00
Micah Anderson
deec3d6a6d add copyright notice in header 2010-09-22 12:53:03 -04:00
Micah Anderson
31de67a0f9 allow for different my.cnf files according to the OS release 2010-09-22 12:52:50 -04:00
Micah Anderson
f1f1d212c1 require package mysql-server for service mysql instead of mysql-client 2010-09-22 12:37:46 -04:00
mh
24d7c6aa24 remove unnecessary fileserver variable (#2460) round II 2010-08-11 15:57:43 +02:00
mh
3bba0859e1 get rid off expensive which call 2010-08-11 10:40:24 +02:00
mh
2f3df107de remove unnecessary fileserver variable (#2460) 2010-08-07 02:12:20 +02:00
mh
0357ccaddc add define to manage a common db/user setup
a db and a corresponding user with all access to that database.
2010-07-21 07:09:55 +02:00
mh
fd690bd339 some minor updates to the providers 2010-07-21 07:04:11 +02:00
mh
7bbe7a95a6 merge with lavamind 2010-07-01 05:23:21 +02:00
Jerome Charaoui
ec16a32708 add mysql::client::ruby subclass 2010-05-10 14:27:08 -04:00
Jerome Charaoui
07917bf1b9 implement mysql::client subclasses 2010-05-10 14:26:42 -04:00
Jerome Charaoui
bc7146f1db adapt to new common module 2010-05-07 17:59:42 -04:00
mh
3fc679a822 fix quoting 2010-04-22 19:58:49 +02:00
mh
828e93c72d as we are in ruby we need to double escape that 2010-04-04 12:27:12 +02:00
mh
d40e1130bc escape table and db names 2010-04-04 12:21:33 +02:00