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
|
|
|
|
|
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',
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/mysql':
|
|
|
|
ensure => directory,
|
|
|
|
mode => '0755',
|
2012-08-13 10:59:28 +02:00
|
|
|
}
|
|
|
|
|
2013-09-09 17:34:39 +02:00
|
|
|
file { '/etc/mysql/conf.d':
|
|
|
|
ensure => directory,
|
|
|
|
mode => '0755',
|
2013-09-25 00:04:29 +02:00
|
|
|
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 {
|
|
|
|
file { $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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|