This cookbook provides library functions for installing mongodb >= 3.2
.
It tries to do as less as possible.
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:
Cookbooks can add shard to a cluster of mongodb. If shard already exist it skips addition.
Please consider fixtures cookbooks under test/fixtures/cookbooks
path.
- chef (>= 12.7) ()
- debian
- ubuntu
- centos
- apt
- yum
- build-essential
node['mongodb']['lib']['version']
- Defaults to3.2.19
.
- mongodb-lib::mongo_gem - Installs mongo gem in compile time. Required for cluster operations
Maintainer:: Yauhen Artsiukhou ([email protected])
Source:: https://github.com/jsirex/mongodb-lib-cookbook
Issues:: https://github.com/jsirex/mongodb-lib-cookbook/issues/
License:: MIT