MCO-489 Avoid clashing with puppets monkeypatch
MCO-489 Avoid clashing with puppets monkeypatch

When loading the puppet agent we load puppet library into the ruby intepreter,
which comes with it's own set of monkeypatches one of which redefines the
initialize of OpenSSL::SSL::SSLContext using the same private method,
__original_initialize.

This causes deep recursion if MCollective needs to reestablish the connection
to the middleware after loading the puppet agent:

    error 2014/10/21 10:16:09: rabbitmq.rb:45:in `on_ssl_connectfail' SSL session creation with stomp+ssl://mcollective@127.0.0.1:61614 failed: stack level too deep

With this patch we change the name of the private method created by our
monkeypatch to __mcollective_original_initialize which avoids the clash/recursion.

jessereynolds/marionette-collective,johnduarte/marionette-collective,kbarber/marionette-collective,johnduarte/marionette-collective,richardc/marionette-collective,kbarber/marionette-collective,jessereynolds/marionette-collective,ploubser/marionette-collective,jessereynolds/marionette-collective,shrug/marionette-collective,spandeyindia/marionette-collective-1,richardc/marionette-collective,geoffnichols/marionette-collective,puppetlabs/marionette-collective,MikaelSmith/marionette-collective,shrug/marionette-collective,jessereynolds/marionette-collective,puppetlabs/marionette-collective,shrug/marionette-collective,pimpajr/marionette-collective,puppetlabs/marionette-collective,Iristyle/marionette-collective,Iristyle/marionette-collective,Iristyle/marionette-collective,Iristyle/marionette-collective,puppetlabs/marionette-collective,MikaelSmith/marionette-collective,pimpajr/marionette-collective,geoffnichols/marionette-collective,richardc/marionette-collective,pimpajr/marionette-collective,Iristyle/marionette-collective,spandeyindia/marionette-collective-1,heathseals/marionette-collective,ploubser/marionette-collective,ploubser/marionette-collective,ploubser/marionette-collective,kbarber/marionette-collective,johnduarte/marionette-collective,jessereynolds/marionette-collective,spandeyindia/marionette-collective-1,pimpajr/marionette-collective,Iristyle/marionette-collective,pimpajr/marionette-collective,shrug/marionette-collective,heathseals/marionette-collective,geoffnichols/marionette-collective,johnduarte/marionette-collective,heathseals/marionette-collective,geoffnichols/marionette-collective,shrug/marionette-collective,heathseals/marionette-collective,MikaelSmith/marionette-collective,shrug/marionette-collective,richardc/marionette-collective,kbarber/marionette-collective,spandeyindia/marionette-collective-1,kbarber/marionette-collective,johnduarte/marionette-collective,richardc/marionette-collective,pimpajr/marionette-collective,kbarber/marionette-collective,puppetlabs/marionette-collective,MikaelSmith/marionette-collective,heathseals/marionette-collective,johnduarte/marionette-collective,spandeyindia/marionette-collective-1,geoffnichols/marionette-collective,heathseals/marionette-collective,puppetlabs/marionette-collective,jessereynolds/marionette-collective,MikaelSmith/marionette-collective,ploubser/marionette-collective,MikaelSmith/marionette-collective,richardc/marionette-collective,spandeyindia/marionette-collective-1