Changed defaults-file to defaults-extra-file

Should load the .my.cnf file with "--defaults-extra-file" instead of "--defaults-file". This is necessary if we have global my.cnf file but we want to use both of them.
This commit is contained in:
w32-blaster 2013-11-10 18:48:22 +01:00 committed by Tamas Szasz
parent 911dbe5c1a
commit e315ee96d0
3 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ class Puppet::Provider::Mysql < Puppet::Provider
# Optional defaults file
def self.defaults_file
if File.file?("#{Facter.value(:root_home)}/.my.cnf")
"--defaults-file=#{Facter.value(:root_home)}/.my.cnf"
"--defaults-extra-file=#{Facter.value(:root_home)}/.my.cnf"
else
nil
end

View file

@ -5,7 +5,7 @@ Puppet::Type.type(:mysql_database).provide(:mysql) do
def self.defaults_file
if File.file?("#{Facter.value(:root_home)}/.my.cnf")
"--defaults-file=#{Facter.value(:root_home)}/.my.cnf"
"--defaults-extra-file=#{Facter.value(:root_home)}/.my.cnf"
else
nil
end

View file

@ -7,7 +7,7 @@ Puppet::Type.type(:mysql_user).provide(:mysql, :parent => Puppet::Provider::Mysq
# Optional defaults file
def self.defaults_file
if File.file?("#{Facter.value(:root_home)}/.my.cnf")
"--defaults-file=#{Facter.value(:root_home)}/.my.cnf"
"--defaults-extra-file=#{Facter.value(:root_home)}/.my.cnf"
else
nil
end