mongo_chef_gem is a library cookbook that provides an LWRP for use
in recipes. It provides a wrapper around chef_gem
called
mongo_chef_gem
that eases the installation process, collecting the
prerequisites and side-stepping the compilation phase arms race.
This cookbook is concerned with the installation of the mongo
Rubygem into Chef's gem path. Installation into other Ruby
environments, or installation of related gems such as mongo
are
outside the scope of this cookbook.
- Chef 11 or higher
- Ruby 1.9 (preferably from the Chef full-stack installer)
depends 'mongo_chef_gem', '~> 0.1.0'
Then, in a recipe:
mongo_chef_gem 'default' do
action :install
end
The mongo_chef_gem
resource the build dependencies and installation
of the mongo
rubygem into Chef's Ruby environment
mongo_chef_gem 'default' do
mongo_version '2.1.2'
bson_ext_version '1.12.4'
action :install
end
mongo_version
- The version of themongo
Rubygem to install into the Chef environment. Defaults to last version.bson_ext_version
- The version of thebson_ext
Rubygem to install into the Chef environment. Defaults to last version.
:install
- Build and install the gem into the Chef environment:remove
- Delete the gem from the Chef environment
- Author:: Andrei Skopenko ([email protected])