From 08a66b7bb9227c281df3c8142c68c005b4ae7189 Mon Sep 17 00:00:00 2001 From: Nick Le Mouton Date: Thu, 6 Nov 2014 15:14:35 +1300 Subject: [PATCH] Added log-bin dir creatation --- manifests/server/config.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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':