Skip to content

Commit

Permalink
Added log-bin dir creatation
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodlesNZ committed Nov 11, 2014
1 parent 40dd180 commit 08a66b7
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 08a66b7

Please sign in to comment.