diff --git a/manifests/server/config.pp b/manifests/server/config.pp index 67138ab0b..d50a4a29e 100644 --- a/manifests/server/config.pp +++ b/manifests/server/config.pp @@ -22,12 +22,16 @@ $logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false) if $logbin { - $logbindir = mysql_dirname($logbin) - file { $logbindir: - ensure => directory, - mode => '0755', - owner => $options['mysqld']['user'], - group => $options['mysqld']['user'], + $logbindir = dirname($logbin) + + #Stop puppet from managing directory if just a filename/prefix is specified + if $logbindir != '.' { + file { $logbindir: + ensure => directory, + mode => '0755', + owner => $options['mysqld']['user'], + group => $options['mysqld']['user'], + } } }