From 61619f69fcce2056209a433f909acdd25c3d88e0 Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Fri, 11 Mar 2016 22:24:55 +0300 Subject: [PATCH] Use mysql_install_db only with uniq defaults-extra-file Executing mysql_install_db with the defaults-extra-file set to the global option file can produce errors with duplicates. For example it happens when 'ignore-db-dir' option passed to $override_options in mysql::server class. Same as https://bugs.mysql.com/bug.php?id=69441 --- manifests/server/installdb.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/installdb.pp b/manifests/server/installdb.pp index 78e08f5..4dd7637 100644 --- a/manifests/server/installdb.pp +++ b/manifests/server/installdb.pp @@ -9,7 +9,7 @@ class mysql::server::installdb { $basedir = $mysql::server::options['mysqld']['basedir'] $config_file = $mysql::server::config_file - if $mysql::server::manage_config_file { + if $mysql::server::manage_config_file and $config_file != $mysql::params::config_file { $_config_file=$config_file } else { $_config_file=undef