2013-09-13 19:09:48 +02:00
|
|
|
# Private class: See README.md.
|
|
|
|
class mysql::params {
|
|
|
|
|
|
|
|
$manage_config_file = true
|
|
|
|
$purge_conf_dir = false
|
|
|
|
$restart = false
|
|
|
|
$root_password = 'UNSET'
|
2015-03-03 16:55:42 +01:00
|
|
|
$install_secret_file = '/.mysql_secret'
|
2013-09-13 19:09:48 +02:00
|
|
|
$server_package_ensure = 'present'
|
2014-12-07 09:23:18 +01:00
|
|
|
$server_package_manage = true
|
2013-09-13 19:09:48 +02:00
|
|
|
$server_service_manage = true
|
|
|
|
$server_service_enabled = true
|
2014-06-04 01:45:00 +02:00
|
|
|
$client_package_ensure = 'present'
|
2014-12-07 09:23:18 +01:00
|
|
|
$client_package_manage = true
|
2014-10-06 10:53:30 +02:00
|
|
|
$create_root_user = true
|
|
|
|
$create_root_my_cnf = true
|
2013-09-13 19:09:48 +02:00
|
|
|
# mysql::bindings
|
2014-05-09 03:17:44 +02:00
|
|
|
$bindings_enable = false
|
|
|
|
$java_package_ensure = 'present'
|
|
|
|
$java_package_provider = undef
|
|
|
|
$perl_package_ensure = 'present'
|
|
|
|
$perl_package_provider = undef
|
|
|
|
$php_package_ensure = 'present'
|
|
|
|
$php_package_provider = undef
|
|
|
|
$python_package_ensure = 'present'
|
|
|
|
$python_package_provider = undef
|
|
|
|
$ruby_package_ensure = 'present'
|
|
|
|
$ruby_package_provider = undef
|
|
|
|
$client_dev_package_ensure = 'present'
|
|
|
|
$client_dev_package_provider = undef
|
|
|
|
$daemon_dev_package_ensure = 'present'
|
|
|
|
$daemon_dev_package_provider = undef
|
2013-09-13 19:09:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'RedHat': {
|
2014-01-24 16:14:58 +01:00
|
|
|
case $::operatingsystem {
|
|
|
|
'Fedora': {
|
2014-12-30 18:45:54 +01:00
|
|
|
if versioncmp($::operatingsystemrelease, '19') >= 0 or $::operatingsystemrelease == 'Rawhide' {
|
2014-01-24 16:14:58 +01:00
|
|
|
$provider = 'mariadb'
|
|
|
|
} else {
|
|
|
|
$provider = 'mysql'
|
|
|
|
}
|
|
|
|
}
|
2014-10-10 22:23:48 +02:00
|
|
|
/^(RedHat|CentOS|Scientific|OracleLinux)$/: {
|
2014-12-30 18:45:54 +01:00
|
|
|
if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
|
2014-01-24 16:14:58 +01:00
|
|
|
$provider = 'mariadb'
|
|
|
|
} else {
|
|
|
|
$provider = 'mysql'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
$provider = 'mysql'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if $provider == 'mariadb' {
|
2013-09-13 19:09:48 +02:00
|
|
|
$client_package_name = 'mariadb'
|
|
|
|
$server_package_name = 'mariadb-server'
|
2014-01-24 16:14:58 +01:00
|
|
|
$server_service_name = 'mariadb'
|
|
|
|
$log_error = '/var/log/mariadb/mariadb.log'
|
2014-06-04 14:05:39 +02:00
|
|
|
$config_file = '/etc/my.cnf.d/server.cnf'
|
|
|
|
# mariadb package by default has !includedir set in my.cnf to /etc/my.cnf.d
|
|
|
|
$includedir = undef
|
2014-01-24 16:14:58 +01:00
|
|
|
$pidfile = '/var/run/mariadb/mariadb.pid'
|
2013-09-13 19:09:48 +02:00
|
|
|
} else {
|
|
|
|
$client_package_name = 'mysql'
|
|
|
|
$server_package_name = 'mysql-server'
|
2014-01-24 16:14:58 +01:00
|
|
|
$server_service_name = 'mysqld'
|
|
|
|
$log_error = '/var/log/mysqld.log'
|
|
|
|
$config_file = '/etc/my.cnf'
|
2014-06-04 14:05:39 +02:00
|
|
|
$includedir = '/etc/my.cnf.d'
|
2014-01-24 16:14:58 +01:00
|
|
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
2014-01-24 16:14:58 +01:00
|
|
|
|
2014-05-09 03:17:44 +02:00
|
|
|
$basedir = '/usr'
|
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2014-05-09 03:17:44 +02:00
|
|
|
$socket = '/var/lib/mysql/mysql.sock'
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
2013-09-13 19:09:48 +02:00
|
|
|
# mysql::bindings
|
2014-05-09 03:17:44 +02:00
|
|
|
$java_package_name = 'mysql-connector-java'
|
|
|
|
$perl_package_name = 'perl-DBD-MySQL'
|
|
|
|
$php_package_name = 'php-mysql'
|
|
|
|
$python_package_name = 'MySQL-python'
|
|
|
|
$ruby_package_name = 'ruby-mysql'
|
2014-06-05 17:17:27 +02:00
|
|
|
$client_dev_package_name = undef
|
2014-05-09 03:17:44 +02:00
|
|
|
$daemon_dev_package_name = 'mysql-devel'
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
'Suse': {
|
2014-11-26 21:57:16 +01:00
|
|
|
case $::operatingsystem {
|
|
|
|
'OpenSuSE': {
|
|
|
|
$client_package_name = 'mysql-community-server-client'
|
|
|
|
$server_package_name = 'mysql-community-server'
|
|
|
|
$basedir = '/usr'
|
|
|
|
}
|
|
|
|
'SLES','SLED': {
|
2014-12-30 18:45:54 +01:00
|
|
|
if versioncmp($::operatingsystemrelease, '12') >= 0 {
|
2014-11-26 21:57:16 +01:00
|
|
|
$client_package_name = 'mariadb-client'
|
|
|
|
$server_package_name = 'mariadb'
|
|
|
|
$basedir = undef
|
|
|
|
} else {
|
|
|
|
$client_package_name = 'mysql-client'
|
|
|
|
$server_package_name = 'mysql'
|
|
|
|
$basedir = '/usr'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Unsupported platform: puppetlabs-${module_name} currently doesn't support ${::operatingsystem}")
|
|
|
|
}
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
$config_file = '/etc/my.cnf'
|
2014-06-04 14:05:39 +02:00
|
|
|
$includedir = '/etc/my.cnf.d'
|
2013-09-13 19:09:48 +02:00
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$log_error = $::operatingsystem ? {
|
|
|
|
/OpenSuSE/ => '/var/log/mysql/mysqld.log',
|
|
|
|
/(SLES|SLED)/ => '/var/log/mysqld.log',
|
|
|
|
}
|
|
|
|
$pidfile = $::operatingsystem ? {
|
|
|
|
/OpenSuSE/ => '/var/run/mysql/mysqld.pid',
|
|
|
|
/(SLES|SLED)/ => '/var/lib/mysql/mysqld.pid',
|
|
|
|
}
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2013-09-13 19:09:48 +02:00
|
|
|
$server_service_name = 'mysql'
|
|
|
|
$socket = $::operatingsystem ? {
|
|
|
|
/OpenSuSE/ => '/var/run/mysql/mysql.sock',
|
|
|
|
/(SLES|SLED)/ => '/var/lib/mysql/mysql.sock',
|
|
|
|
}
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'mysql-connector-java'
|
|
|
|
$perl_package_name = 'perl-DBD-mysql'
|
2014-02-26 15:54:54 +01:00
|
|
|
$php_package_name = 'apache2-mod_php53'
|
2013-09-13 19:09:48 +02:00
|
|
|
$python_package_name = 'python-mysql'
|
|
|
|
$ruby_package_name = $::operatingsystem ? {
|
|
|
|
/OpenSuSE/ => 'rubygem-mysql',
|
|
|
|
/(SLES|SLED)/ => 'ruby-mysql',
|
|
|
|
}
|
2014-05-09 03:17:44 +02:00
|
|
|
$client_dev_package_name = 'libmysqlclient-devel'
|
|
|
|
$daemon_dev_package_name = 'mysql-devel'
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
'Debian': {
|
2014-05-09 03:17:44 +02:00
|
|
|
$client_package_name = 'mysql-client'
|
|
|
|
$server_package_name = 'mysql-server'
|
2013-09-13 19:09:48 +02:00
|
|
|
|
2014-05-09 03:17:44 +02:00
|
|
|
$basedir = '/usr'
|
|
|
|
$config_file = '/etc/mysql/my.cnf'
|
2014-06-04 14:05:39 +02:00
|
|
|
$includedir = '/etc/mysql/conf.d'
|
2014-05-09 03:17:44 +02:00
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$log_error = '/var/log/mysql/error.log'
|
|
|
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2014-05-09 03:17:44 +02:00
|
|
|
$server_service_name = 'mysql'
|
|
|
|
$socket = '/var/run/mysqld/mysqld.sock'
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
2013-09-13 19:09:48 +02:00
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'libmysql-java'
|
|
|
|
$perl_package_name = 'libdbd-mysql-perl'
|
|
|
|
$php_package_name = 'php5-mysql'
|
|
|
|
$python_package_name = 'python-mysqldb'
|
2014-05-09 22:46:03 +02:00
|
|
|
$ruby_package_name = $::lsbdistcodename ? {
|
|
|
|
'trusty' => 'ruby-mysql',
|
2014-12-19 16:24:51 +01:00
|
|
|
'jessie' => 'ruby-mysql',
|
2014-05-09 22:46:03 +02:00
|
|
|
default => 'libmysql-ruby',
|
|
|
|
}
|
2014-05-09 03:17:44 +02:00
|
|
|
$client_dev_package_name = 'libmysqlclient-dev'
|
2014-06-05 17:17:27 +02:00
|
|
|
$daemon_dev_package_name = 'libmysqld-dev'
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
|
2014-05-14 00:51:00 +02:00
|
|
|
'Archlinux': {
|
|
|
|
$client_package_name = 'mariadb-clients'
|
|
|
|
$server_package_name = 'mariadb'
|
|
|
|
$basedir = '/usr'
|
|
|
|
$config_file = '/etc/mysql/my.cnf'
|
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$log_error = '/var/log/mysqld.log'
|
|
|
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2014-05-14 00:51:00 +02:00
|
|
|
$server_service_name = 'mysqld'
|
|
|
|
$socket = '/var/lib/mysql/mysql.sock'
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'mysql-connector-java'
|
|
|
|
$perl_package_name = 'perl-dbd-mysql'
|
|
|
|
$php_package_name = undef
|
|
|
|
$python_package_name = 'mysql-python'
|
|
|
|
$ruby_package_name = 'mysql-ruby'
|
|
|
|
}
|
|
|
|
|
2014-08-29 17:26:48 +02:00
|
|
|
'Gentoo': {
|
|
|
|
$client_package_name = 'virtual/mysql'
|
|
|
|
$server_package_name = 'virtual/mysql'
|
|
|
|
$basedir = '/usr'
|
|
|
|
$config_file = '/etc/mysql/my.cnf'
|
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$log_error = '/var/log/mysql/mysqld.err'
|
|
|
|
$pidfile = '/run/mysqld/mysqld.pid'
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2014-08-29 17:26:48 +02:00
|
|
|
$server_service_name = 'mysql'
|
|
|
|
$socket = '/run/mysqld/mysqld.sock'
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'dev-java/jdbc-mysql'
|
|
|
|
$perl_package_name = 'dev-perl/DBD-mysql'
|
|
|
|
$php_package_name = undef
|
|
|
|
$python_package_name = 'dev-python/mysql-python'
|
|
|
|
$ruby_package_name = 'dev-ruby/mysql-ruby'
|
|
|
|
}
|
|
|
|
|
2013-09-13 19:09:48 +02:00
|
|
|
'FreeBSD': {
|
2015-05-12 20:56:24 +02:00
|
|
|
$client_package_name = 'databases/mysql56-client'
|
|
|
|
$server_package_name = 'databases/mysql56-server'
|
2013-09-13 19:09:48 +02:00
|
|
|
$basedir = '/usr/local'
|
2015-05-12 20:56:24 +02:00
|
|
|
$config_file = '/usr/local/etc/my.cnf'
|
|
|
|
$includedir = '/usr/local/etc/my.cnf.d'
|
2013-09-13 19:09:48 +02:00
|
|
|
$datadir = '/var/db/mysql'
|
2015-05-12 20:56:24 +02:00
|
|
|
$log_error = '/var/log/mysqld.log'
|
|
|
|
$pidfile = '/var/run/mysql.pid'
|
2013-09-13 19:09:48 +02:00
|
|
|
$root_group = 'wheel'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2013-09-13 19:09:48 +02:00
|
|
|
$server_service_name = 'mysql-server'
|
2015-05-12 20:56:24 +02:00
|
|
|
$socket = '/var/db/mysql/mysql.sock'
|
2013-09-13 19:09:48 +02:00
|
|
|
$ssl_ca = undef
|
|
|
|
$ssl_cert = undef
|
|
|
|
$ssl_key = undef
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'databases/mysql-connector-java'
|
|
|
|
$perl_package_name = 'p5-DBD-mysql'
|
|
|
|
$php_package_name = 'php5-mysql'
|
|
|
|
$python_package_name = 'databases/py-MySQLdb'
|
|
|
|
$ruby_package_name = 'databases/ruby-mysql'
|
2014-05-09 03:17:44 +02:00
|
|
|
# The libraries installed by these packages are included in client and server packages, no installation required.
|
|
|
|
$client_dev_package_name = undef
|
|
|
|
$daemon_dev_package_name = undef
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
|
2014-09-15 00:15:24 +02:00
|
|
|
'OpenBSD': {
|
|
|
|
$client_package_name = 'mariadb-client'
|
|
|
|
$server_package_name = 'mariadb-server'
|
|
|
|
$basedir = '/usr/local'
|
|
|
|
$config_file = '/etc/my.cnf'
|
|
|
|
$includedir = undef
|
|
|
|
$datadir = '/var/mysql'
|
|
|
|
$log_error = "/var/mysql/${::hostname}.err"
|
|
|
|
$pidfile = '/var/mysql/mysql.pid'
|
|
|
|
$root_group = 'wheel'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = '_mysql'
|
2014-09-15 00:15:24 +02:00
|
|
|
$server_service_name = 'mysqld'
|
|
|
|
$socket = '/var/run/mysql/mysql.sock'
|
|
|
|
$ssl_ca = undef
|
|
|
|
$ssl_cert = undef
|
|
|
|
$ssl_key = undef
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = undef
|
|
|
|
$perl_package_name = 'p5-DBD-mysql'
|
|
|
|
$php_package_name = 'php-mysql'
|
|
|
|
$python_package_name = 'py-mysql'
|
|
|
|
$ruby_package_name = 'ruby-mysql'
|
|
|
|
# The libraries installed by these packages are included in client and server packages, no installation required.
|
|
|
|
$client_dev_package_name = undef
|
|
|
|
$daemon_dev_package_name = undef
|
|
|
|
}
|
|
|
|
|
2015-06-25 17:33:56 +02:00
|
|
|
'Solaris': {
|
|
|
|
$client_package_name = 'database/mysql-55/client'
|
|
|
|
$server_package_name = 'database/mysql-55'
|
|
|
|
$basedir = undef
|
|
|
|
$config_file = '/etc/mysql/5.5/my.cnf'
|
|
|
|
$datadir = '/var/mysql/5.5/data'
|
|
|
|
$log_error = "/var/mysql/5.5/data/${::hostname}.err"
|
|
|
|
$pidfile = "/var/mysql/5.5/data/${::hostname}.pid"
|
|
|
|
$root_group = 'bin'
|
|
|
|
$server_service_name = 'application/database/mysql:version_55'
|
|
|
|
$socket = '/tmp/mysql.sock'
|
|
|
|
$ssl_ca = undef
|
|
|
|
$ssl_cert = undef
|
|
|
|
$ssl_key = undef
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = undef
|
|
|
|
$perl_package_name = undef
|
|
|
|
$php_package_name = 'web/php-53/extension/php-mysql'
|
|
|
|
$python_package_name = 'library/python/python-mysql'
|
|
|
|
$ruby_package_name = undef
|
|
|
|
# The libraries installed by these packages are included in client and server packages, no installation required.
|
|
|
|
$client_dev_package_name = undef
|
|
|
|
$daemon_dev_package_name = undef
|
|
|
|
}
|
|
|
|
|
2013-09-13 19:09:48 +02:00
|
|
|
default: {
|
|
|
|
case $::operatingsystem {
|
|
|
|
'Amazon': {
|
|
|
|
$client_package_name = 'mysql'
|
|
|
|
$server_package_name = 'mysql-server'
|
|
|
|
$basedir = '/usr'
|
|
|
|
$config_file = '/etc/my.cnf'
|
2014-06-04 14:05:39 +02:00
|
|
|
$includedir = '/etc/my.cnf.d'
|
2013-09-13 19:09:48 +02:00
|
|
|
$datadir = '/var/lib/mysql'
|
|
|
|
$log_error = '/var/log/mysqld.log'
|
|
|
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
|
|
|
$root_group = 'root'
|
2015-03-18 08:47:25 +01:00
|
|
|
$mysql_group = 'mysql'
|
2013-09-13 19:09:48 +02:00
|
|
|
$server_service_name = 'mysqld'
|
|
|
|
$socket = '/var/lib/mysql/mysql.sock'
|
|
|
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
|
|
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
|
|
|
$ssl_key = '/etc/mysql/server-key.pem'
|
|
|
|
$tmpdir = '/tmp'
|
|
|
|
# mysql::bindings
|
|
|
|
$java_package_name = 'mysql-connector-java'
|
|
|
|
$perl_package_name = 'perl-DBD-MySQL'
|
|
|
|
$php_package_name = 'php-mysql'
|
|
|
|
$python_package_name = 'MySQL-python'
|
|
|
|
$ruby_package_name = 'ruby-mysql'
|
2014-05-09 03:17:44 +02:00
|
|
|
# The libraries installed by these packages are included in client and server packages, no installation required.
|
|
|
|
$client_dev_package_name = undef
|
|
|
|
$daemon_dev_package_name = undef
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
default: {
|
2014-08-08 17:55:31 +02:00
|
|
|
fail("Unsupported platform: puppetlabs-${module_name} currently doesn't support ${::osfamily} or ${::operatingsystem}")
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-25 00:04:29 +02:00
|
|
|
case $::operatingsystem {
|
|
|
|
'Ubuntu': {
|
2014-01-23 21:54:07 +01:00
|
|
|
$server_service_provider = upstart
|
2013-09-25 00:04:29 +02:00
|
|
|
}
|
|
|
|
default: {
|
2014-01-23 21:54:07 +01:00
|
|
|
$server_service_provider = undef
|
2013-09-25 00:04:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$default_options = {
|
|
|
|
'client' => {
|
|
|
|
'port' => '3306',
|
|
|
|
'socket' => $mysql::params::socket,
|
|
|
|
},
|
|
|
|
'mysqld_safe' => {
|
|
|
|
'nice' => '0',
|
2013-12-13 22:20:50 +01:00
|
|
|
'log-error' => $mysql::params::log_error,
|
2013-09-25 00:04:29 +02:00
|
|
|
'socket' => $mysql::params::socket,
|
|
|
|
},
|
|
|
|
'mysqld' => {
|
|
|
|
'basedir' => $mysql::params::basedir,
|
2013-12-14 21:55:33 +01:00
|
|
|
'bind-address' => '127.0.0.1',
|
2013-09-25 00:04:29 +02:00
|
|
|
'datadir' => $mysql::params::datadir,
|
|
|
|
'expire_logs_days' => '10',
|
2013-12-14 23:15:13 +01:00
|
|
|
'key_buffer_size' => '16M',
|
2013-12-13 22:20:50 +01:00
|
|
|
'log-error' => $mysql::params::log_error,
|
2013-09-25 00:04:29 +02:00
|
|
|
'max_allowed_packet' => '16M',
|
|
|
|
'max_binlog_size' => '100M',
|
|
|
|
'max_connections' => '151',
|
|
|
|
'myisam_recover' => 'BACKUP',
|
2013-12-13 22:20:50 +01:00
|
|
|
'pid-file' => $mysql::params::pidfile,
|
2013-09-25 00:04:29 +02:00
|
|
|
'port' => '3306',
|
|
|
|
'query_cache_limit' => '1M',
|
|
|
|
'query_cache_size' => '16M',
|
|
|
|
'skip-external-locking' => true,
|
|
|
|
'socket' => $mysql::params::socket,
|
|
|
|
'ssl' => false,
|
|
|
|
'ssl-ca' => $mysql::params::ssl_ca,
|
|
|
|
'ssl-cert' => $mysql::params::ssl_cert,
|
|
|
|
'ssl-key' => $mysql::params::ssl_key,
|
2014-02-28 19:07:48 +01:00
|
|
|
'ssl-disable' => false,
|
2013-09-25 00:04:29 +02:00
|
|
|
'thread_cache_size' => '8',
|
|
|
|
'thread_stack' => '256K',
|
|
|
|
'tmpdir' => $mysql::params::tmpdir,
|
|
|
|
'user' => 'mysql',
|
|
|
|
},
|
|
|
|
'mysqldump' => {
|
2013-09-30 18:10:42 +02:00
|
|
|
'max_allowed_packet' => '16M',
|
2013-09-25 00:04:29 +02:00
|
|
|
'quick' => true,
|
|
|
|
'quote-names' => true,
|
|
|
|
},
|
|
|
|
'isamchk' => {
|
2013-12-14 23:15:13 +01:00
|
|
|
'key_buffer_size' => '16M',
|
2013-09-25 00:04:29 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2014-08-08 17:55:31 +02:00
|
|
|
## Additional graceful failures
|
|
|
|
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '4' {
|
|
|
|
fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 5.0 and beyond")
|
|
|
|
}
|
2013-09-13 19:09:48 +02:00
|
|
|
}
|