Added log-bin dir creatation

This commit is contained in:
Nick Le Mouton 2014-11-06 15:14:35 +13:00
parent 40dd180588
commit 08a66b7bb9

View file

@ -18,6 +18,18 @@ class mysql::server::config {
purge => $mysql::server::purge_conf_dir, purge => $mysql::server::purge_conf_dir,
} }
} }
$logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false)
if $logbin {
$logbindir = dirname($logbin)
file { "$logbindir":
ensure => directory,
mode => '0755',
owner => $options['mysqld']['user'],
group => $options['mysqld']['user'],
}
}
if $mysql::server::manage_config_file { if $mysql::server::manage_config_file {
file { 'mysql-config-file': file { 'mysql-config-file':