summaryrefslogtreecommitdiff
path: root/files
AgeCommit message (Collapse)Author
2015-05-13mysql root password is leaked to the process listGabriel Filion
Every time the root password reset is used we're leaking the password to the process list. If we use the already present /root/.my.cnf for credentials then it has the same effect for verification and we avoid leaking the password.
2015-02-24Merge branch 'master' of git://git.puppet.immerda.ch/module-mysqlJerome Charaoui
Conflicts: files/scripts/optimize_tables.rb manifests/server/base.pp
2015-01-24fix issues for EL7 + simplify account securitymh
* 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-12split on new line, which fixes an issue if no table is foundmh
2015-01-10introduce new mariadb based config for EL7mh
2014-03-12Merge branch 'mention_path'Gabriel Filion
2014-03-11Fix command output capturing in optimize_tables.rb for Ruby 1.9Jerome Charaoui
2014-02-05fix #6638 - remove the unless check & improve scriptmh
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-01-12improve optimize scriptmh
2013-12-05introduce the /etc/mysql/conf.d/ directory for CentOSmh
2013-12-05some reasonable defaultsmh
2013-12-04update to latest EL releasemh
2013-12-04rename deprecated optionmh
2013-12-04also chown the data dirmh
2013-12-04EL6.4 doesn't know about bdbmh
2013-11-15setmysqlpass: be more careful before plundering into actionGabriel Filion
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-02-19introduce helpers for mysql backupsmh
2013-01-02Merge remote-tracking branch 'shared/master'mh
Conflicts: files/config/my.cnf.Debian manifests/server/base.pp manifests/server/munin/default.pp manifests/server/nagios.pp
2012-04-29Merge remote-tracking branch 'laurantb/master'mh
Conflicts: manifests/server/cron/backup.pp
2012-04-11Merge remote-tracking branch 'lelutin/squeeze_my_cnf' into sharedMicah Anderson
2012-04-09Import my.cnf from Debian SqueezeGabriel Filion
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-03-07Merge commit '356fdab8147f8a32a3f14514f2bb77f4f312c734' into sharedMicah Anderson
Conflicts: files/munin/mysql_connections manifests/server/base.pp manifests/server/munin/default.pp
2012-03-07Merge remote-tracking branch 'lelutin/root_pw_no_arg' into sharedMicah Anderson
Conflicts: manifests/server/base.pp
2012-01-17add innodb_file_per_table option by defaultmh
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
2011-03-17BDB is not compiled anymore on Debian systemsLaurent Bachelier
It would make the daemon fail to load if put in the config.
2010-12-21add some other mysql pluginsmh
2010-12-18Avoid root password leak to process listGabriel Filion
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-15Avoid root password leak to process listGabriel Filion
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-11-01add mysql munin graphs and adjust the file distribution to match the right ↵Micah Anderson
location of where they are
2010-10-18. remove the check_mysql_health script from the mysql module, instead it ↵Micah Anderson
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-17add new version of check_mysql_health pluginMicah Anderson
2010-09-27add a more advanced mysql health check plugin:Micah Anderson
* 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-22Merge remote branch 'remotes/immerda/master'Micah Anderson
Conflicts: manifests/server/base.pp
2010-09-22increase timeout before killing to account for slower startup speed of ↵Micah Anderson
larger databases
2010-04-04as we are in ruby we need to double escape thatmh
2010-04-04escape table and db namesmh
2010-04-02improve optimize script to work as well on weird named tablesmh
2009-12-10make backup and optimize cron jobs optional; introduce $mysql_backup_cron, ↵Jerome Charaoui
$mysql_backup_dir and$mysql_optimize_cron; use a module_dir for scripts
2009-12-10add Debian supportJerome Charaoui
2009-11-19be nicer during mysql backupmh
sometimes it can happen that by locking all tables we run into error 24, which means to many open files. According to http://rackerhacker.com/2007/08/19/mysql-errcode-24-when-using-lock-tables/ we can use single-transaction to be nicer during backups.
2009-02-22set home so .my.cnf is found as we run it as cron weeklymh
2009-02-22fixing integer conversionmh
2009-02-21merged with puzzlemh
2008-10-19Merge commit 'puzzle/development'mh
2008-08-07optimized default my.cnfmh
2008-08-07merged with puzzlemh
2008-07-29if we enable binary logs, we should also enable max days for themmh
2008-07-14merged with immerda, added data directory to be defaultmh
2008-07-13fixed log-bin locationmh
2008-07-11fixing bin-log parammh