cookbook 'mongodb-lib', '= 0.2.3'
mongodb-lib (5) Versions 0.2.3 Follow1
Provides library functions for managing mongodb
cookbook 'mongodb-lib', '= 0.2.3', :supermarket
knife supermarket install mongodb-lib
knife supermarket download mongodb-lib
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:
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 to3.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
0.2.3 failed this 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
0.2.3 failed this metric
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
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
0.2.3 failed this metric
0.2.3 passed this metric