diff --git a/manifests/server/config.pp b/manifests/server/config.pp index 6a7e8ea8f..1a7a1f238 100644 --- a/manifests/server/config.pp +++ b/manifests/server/config.pp @@ -18,6 +18,18 @@ 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 { file { 'mysql-config-file':