diff --git a/manifests/config.pp b/manifests/config.pp index 3f4cca6..d12c6e8 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -42,7 +42,8 @@ class mysql::config( $ssl = $mysql::params::ssl, $ssl_ca = $mysql::params::ssl_ca, $ssl_cert = $mysql::params::ssl_cert, - $ssl_key = $mysql::params::ssl_key + $ssl_key = $mysql::params::ssl_key, + $log_error = $mysql::params::log_error ) inherits mysql::params { File { diff --git a/manifests/params.pp b/manifests/params.pp index 44d96bf..9c732ec 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -37,6 +37,7 @@ class mysql::params { $client_package_name = 'mysql' $socket = '/var/lib/mysql/mysql.sock' $config_file = '/etc/my.cnf' + $log_error = '/var/log/mysqld.log' $ruby_package_name = 'ruby-mysql' $ruby_package_provider = 'gem' $python_package_name = 'MySQL-python' @@ -47,6 +48,7 @@ class mysql::params { $client_package_name = 'mysql-client' $socket = '/var/run/mysqld/mysqld.sock' $config_file = '/etc/mysql/my.cnf' + $log_error = '/var/log/mysql/error.log' $ruby_package_name = 'libmysql-ruby' $python_package_name = 'python-mysqldb' } diff --git a/templates/my.cnf.erb b/templates/my.cnf.erb index e8f2e13..714bd37 100644 --- a/templates/my.cnf.erb +++ b/templates/my.cnf.erb @@ -20,7 +20,7 @@ thread_cache_size = 8 myisam-recover = BACKUP query_cache_limit = 1M query_cache_size = 16M -log_error = /var/log/mysql/error.log +log_error = <%= log_error %> expire_logs_days = 10 max_binlog_size = 100M