From b86decc0ea274eb6d9ffa3170fd4ec81d735519f Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Thu, 17 Dec 2009 14:47:19 -0800 Subject: Fix #2816 MySQL server has gone away As suggested in the ticket, set :reconnect to true. Our in-house Rails experts suggest that this is unlikely to cause any problems. The setting is silently ignored before Rails 2.3 --- lib/puppet/rails.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet') diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb index 98d8297fe..98c0e3d32 100644 --- a/lib/puppet/rails.rb +++ b/lib/puppet/rails.rb @@ -54,6 +54,7 @@ module Puppet::Rails args[:username] = Puppet[:dbuser] unless Puppet[:dbuser].empty? args[:password] = Puppet[:dbpassword] unless Puppet[:dbpassword].empty? args[:database] = Puppet[:dbname] + args[:reconnect]= true socket = Puppet[:dbsocket] args[:socket] = socket unless socket.empty? -- cgit