Skip to content

Instantly share code, notes, and snippets.

@maplebed
Created March 12, 2013 00:31
Show Gist options
  • Save maplebed/5139266 to your computer and use it in GitHub Desktop.
Save maplebed/5139266 to your computer and use it in GitHub Desktop.
This works in chef11 but not chef10. Do I try and make it work or sigh and force a chef client upgrade?
26 needs_mongo_gem = (node.recipe?("mongodb::replicaset") or node.recipe?("mongodb::mongos"))
27
28 if needs_mongo_gem
29 # install the mongo ruby gem at compile time to make it globally available
30 gem_package 'mongo' do
31 action :nothing
32 end.run_action(:install)
33 Gem.clear_paths
34 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment