Git Product home page Git Product logo

chef_gem's Introduction

ChefGem

This cookbook is a transition cookbook aimed at helping move from the pre-chef_gem era to the post chef_gem era. The chef_gem resource was introducde in Chef 0.10.9, providing an easy mechanism for installing and using gems required by Chef internally. When used within an omnibus installation, chef_gems are installed within the embedded Ruby.

What this cookbook provides

For pre 0.10.9 Chef installations, it provides a chef_gem compatible resouce allowing cookbooks to be updated but not requiring full conversions. For installations under 0.10.12, some patches are added to aid in proper omnibus functionality allowing chef_gem to work as expected. For Chef installations of 0.10.12 and beyond, this cookbook provides nothing. This means you will get consistent and expected behavior across Chef versions.

Configuration

Notable attributes (note that these should only be required for special cases):

  • node[:gem_binary] = '/usr/local/bin/gem'
  • node[:chef_gem_binary] = '/opt/opscode/embedded/bin/gem'

Notes

With the release of 0.10.12 this cookbook should be considered deprecated and used only for compatibility with older installations.

Repository

chef_gem's People

Contributors

chrisroberts avatar eklein avatar webframp avatar tas50 avatar

Stargazers

Angus H. avatar  avatar Nestor G Pestelos Jr avatar Brandon Summers avatar

Watchers

 avatar  avatar James Cloos avatar  avatar

chef_gem's Issues

Workaround for CHEF-3164

We got bit by the issue that is fixed by CHEF-3164 in Chef 10.14.0. I propose adding a workaround to the chef_gem cookbook for earlier versions of Chef by executing Gem.clear_paths in the after_created resource hook before the actions are executed.

require 'xxxxx' not working after chef_gem :install on Chef 0.9.15.5 running on Amazon OpsWorks

I keep getting the following error on Amazon OpsWorks when using the rvm chef recipe.

The error is:

[Wed, 24 Apr 2013 01:49:40 +0000] ERROR: Caught exception during execution of custom recipe: rvm::system: LoadError - no such file to load -- rvm - /opt/aws/opsworks/current/site-cookbooks/rvm/recipes/default.rb:26:in `require'

And the default.rb looks like this:

chef_gem 'rvm' do
  action :install
  version '>= 1.11.3.6'
end

require 'rvm'  # <===== Line 26

Any idea what might be going on?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.