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

RSS

greysystems-mongodb (7) Versions 1.0.3

Installs/Configures a mongodb instance

Berkshelf/Librarian
Policyfile
Knife
cookbook 'greysystems-mongodb', '= 1.0.3'
cookbook 'greysystems-mongodb', '= 1.0.3', :supermarket
knife cookbook site install greysystems-mongodb
knife cookbook site download greysystems-mongodb
README
Dependencies
Changelog
Quality

Master Branch: Build Status Develop Branch: Build Status

greysystems-mongodb Cookbook

Wrapper cookbook over mongodb cookbook that installs and configures MongoDB, supporting:

  • Single MongoDB instance
  • EC2 installation including creation/attach/format/mount of an EBS volume
  • Replication

REQUIREMENTS:

This cookbook depends on these external cookbooks:

  • mongodb
  • aws
  • selinux

Platform:

  • Chef client version >= 12 (not tested on 13)
  • Centos 7

Any RHEL platform should be supported but it's not tested.

ATTRIBUTES:

Check for information about all attributes that can be configured in mongodb cookbook

Apart from the attributes defined in mongodb community cookbook, this cookbook also supports:

EBS specific attributes:

  • node['greysystems_mongo']['ec2'] - EC2 mode, defaults to true. If you are not using an EC2 instance, please setup this variable to false
  • node['greysystems_mongo']['ebs']['size'] - Size of the EBS volume to mount on the node, expressed in GB, defaults to 20. If node['greysystems_mongo']['ec2'] = false, it's not taken into account
  • node['greysystems_mongo']['ebs']['mount_point'] - Mount poinf of the volume, defaults to /data. If node['greysystems_mongo']['ec2'] = false, it's not taken into account
  • node['greysystems_mongo']['ebs']['device_id'] - Device id of the EBS volume, defaults to /xvdb. If node['greysystems_mongo']['ec2'] = false, it's not taken into account

USAGE:

Single mongodb instance

Simply add

include_recipe "greysystems-mongodb::default"

to your recipe. This will run the mongodb instance as configured by your distribution.

Replicasets

  • Setup the same value for attributes node[:mongodb][:cluster_name] and node[:mongodb][:config][:replSet] in any member of the cluster (primary and secondaries)
  • Launch and configure FIRST the replicaset's nodes. They must be up and running before the primary's node is configured.
  • For replicaset's member, add the following recipe to his run_list: ruby include_recipe "greysystems-mongodb::default"
  • For primary's node, apart from adding the default recipe, include configure-replicaset recipe: ruby include_recipe "greysystems-mongodb::default" include_recipe "greysystems-mongodb::configure_relicaset"

Testing

Due to the nature of AWS, local testing EBS features is not supported at this moment.

For testing the rest of features, this cookbook has an in-place kitchen.yml ready to work with docker

# install dependencies
chef exec bundle install
# converge node
chef exec bundle exec rake converge
# verify (integration tests)
chef exec bundle exec rake verify
# full tests (style, converge, verify, destroy docker isntance)
chef exec bundle exec rake full

Contributing

Everybody is welcome to contribute. Please, see CONTRIBUTING for further information.

Bug Reports

Bug reports can be sent directly to authors and/or using github's issues.


Copyright (c) 2017 Grey Systems (www.greysystems.eu)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Dependent cookbooks

selinux >= 0.0.0
aws >= 0.0.0
mongodb >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

1.0.0

initial release

Collaborator Number Metric
            

1.0.3 failed this metric

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

Contributing File Metric
            

1.0.3 passed this metric

License Metric
            

1.0.3 failed this metric

greysystems-mongodb does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

Publish Metric
            

1.0.3 passed this metric

Supported Platforms Metric
            

1.0.3 passed this metric

Testing File Metric
            

1.0.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
            

1.0.3 passed this metric