Added log-bin dir creatation
This commit is contained in:
parent
40dd180588
commit
08a66b7bb9
1 changed files with 12 additions and 0 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue