duritong / puppet-trocla

puppet integration for trocla
11 stars 18 forks source link

Compatibility with latest Puppet version (v3.1.0) #2

Closed amfranz closed 11 years ago

amfranz commented 11 years ago

This makes the Gem usable in the latest Puppet versions.

The handling of RubyGems got revised in Puppet 3.0.1-rc1: http://projects.puppetlabs.com/issues/16757

The new policy is that either bundler and/or rubygems are guaranteed to be loaded and initialized when the Puppet manifest is evaluated, making it unnecessary for Puppet modules to load rubygems.

This new policy broke the puppet-trocla module. This is because 'Puppet.features.rubygems?' always evaluates to false now, which causes the module to abort the manifest compilation with a message informing about the necessity of RubyGems to be present.

duritong commented 11 years ago

Do you know what the idea is how to deal with that < 3.0? Because this does not address the case on puppet version < 3.0 and as far as I know there, we can't be sure that rubygems is loaded.

duritong commented 11 years ago

Well it looks like things might also work there - more or less