Skip to content

Commit

Permalink
Merge pull request #596 from NoodlesNZ/logbindir
Browse files Browse the repository at this point in the history
Create log-bin directory if it doesn't exist
  • Loading branch information
igalic committed Nov 12, 2014
2 parents ad709af + 08a66b7 commit 56e52fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 56e52fc

Please sign in to comment.