Skip to content

Latest commit

 

History

History
59 lines (32 loc) · 1.31 KB

README.md

File metadata and controls

59 lines (32 loc) · 1.31 KB

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 ([email protected])

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

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

License:: MIT