2013-09-09 17:34:39 +02:00
|
|
|
# See README.me for options.
|
|
|
|
class mysql::server::config {
|
2012-08-13 10:59:28 +02:00
|
|
|
|
2013-09-25 00:04:29 +02:00
|
|
|
$options = $mysql::server::options
|
2014-06-04 14:05:39 +02:00
|
|
|
$includedir = $mysql::server::includedir
|
2013-09-25 00:04:29 +02:00
|
|
|
|
2013-09-09 17:34:39 +02:00
|
|
|
File {
|
|
|
|
owner => 'root',
|
2013-09-25 00:04:29 +02:00
|
|
|
group => $mysql::server::root_group,
|
2013-09-09 17:34:39 +02:00
|
|
|
mode => '0400',
|
|
|
|
}
|
|
|
|
|
2014-06-04 14:05:39 +02:00
|
|
|
if $includedir and $includedir != '' {
|
|
|
|
file { "$mysql::server::includedir":
|
|
|
|
ensure => directory,
|
|
|
|
mode => '0755',
|
|
|
|
recurse => $mysql::server::purge_conf_dir,
|
|
|
|
purge => $mysql::server::purge_conf_dir,
|
|
|
|
}
|
2012-08-13 10:59:28 +02:00
|
|
|
}
|
|
|
|
|
2013-09-25 00:04:29 +02:00
|
|
|
if $mysql::server::manage_config_file {
|
2014-07-28 07:51:22 +02:00
|
|
|
file { 'mysql-config-file':
|
|
|
|
path => $mysql::server::config_file,
|
2013-09-09 17:34:39 +02:00
|
|
|
content => template('mysql/my.cnf.erb'),
|
|
|
|
mode => '0644',
|
2012-08-13 10:59:28 +02:00
|
|
|
}
|
|
|
|
}
|
2014-03-04 14:58:17 +01:00
|
|
|
|
|
|
|
if $options['mysqld']['ssl-disable'] {
|
|
|
|
notify {'ssl-disable':
|
|
|
|
message =>'Disabling SSL is evil! You should never ever do this except if you are forced to use a mysql version compiled without SSL support'
|
|
|
|
}
|
|
|
|
}
|
2012-08-13 10:59:28 +02:00
|
|
|
}
|