Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

mongodb-lib (5) Versions 0.2.3

Provides library functions for managing mongodb

Policyfile
Berkshelf
Knife
cookbook 'mongodb-lib', '= 0.2.3', :supermarket
cookbook 'mongodb-lib', '= 0.2.3'
knife supermarket install mongodb-lib
knife supermarket download mongodb-lib
README
Dependencies
Quality 33%

Description

This cookbook provides library functions for installing mongodb >= 3.2.

It tries to do as less as possible.

Notes

Replicaset

Replicaset configuration must has all required values as described in official documentation.
Replicaset version may be omitted, because if topology will change cookbook can schedule reconfiguration.

Because mongodb itself adds to configuration some default values it is really hard to preserve idempotency.
Thats why algorithm is a bit complicated. See the picture:

replicaset configuration

Sharding

Cookbooks can add shard to a cluster of mongodb. If shard already exist it skips addition.

Examples of usage

Please consider fixtures cookbooks under test/fixtures/cookbooks path.

Requirements

Platform:

  • debian
  • ubuntu
  • centos

Cookbooks:

  • apt
  • yum
  • build-essential

Attributes

  • node['mongodb']['lib']['version'] - Defaults to 3.2.19.

Recipes

  • mongodb-lib::mongo_gem - Installs mongo gem in compile time. Required for cluster operations

License and Maintainer

Maintainer:: Yauhen Artsiukhou (jsirex@gmail.com)

Source:: https://github.com/jsirex/mongodb-lib-cookbook

Issues:: https://github.com/jsirex/mongodb-lib-cookbook/issues/

License:: MIT

Dependent cookbooks

apt >= 0.0.0
yum >= 0.0.0
build-essential >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.2.3 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.3 failed this metric

FC115: Custom resource contains a name_property that is required: mongodb-lib/libraries/mongodb_base.rb:5
FC115: Custom resource contains a name_property that is required: mongodb-lib/libraries/mongodb_repo_base.rb:6
FC115: Custom resource contains a name_property that is required: mongodb-lib/libraries/mongodb_service_base.rb:8
FC115: Custom resource contains a name_property that is required: mongodb-lib/libraries/mongodb_shard.rb:7
FC120: Do not set the name property directly on a resource: mongodb-lib/libraries/mongodb_package_yum.rb:20
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.3 passed this metric

Testing File Metric
            

0.2.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.3 passed this metric