Created
March 12, 2013 00:31
-
-
Save maplebed/5139266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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