logankoester / chef-mongodb

A Chef cookbook for installing the MongoDB database server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ldk-mongodb cookbook

A Chef cookbook for installing the MongoDB database server

Build Status Gittip

See MongoDB.

Installation

Using Berkshelf, add the ldk-mongodb cookbook to your Berksfile.

cookbook 'ldk-mongodb', github: 'logankoester/chef-mongodb', branch: 'master'

Then run berks to install it.

Usage

Add recipe[ldk-mongodb::default] to your run list. This recipe will install mongodb, enable and start the mongodb service.

Attributes

Refer to attributes/default.rb for details.

Running the tests

This cookbook uses the Foodcritic linter, ChefSpec for unit testing, and ServerSpec for integration testing via Test Kitchen with the kitchen-docker driver.

It's not as complicated as it sounds, but you will need to have Docker installed.

  1. git clone git@github.com:logankoester/chef-mongodb.git
  2. cd chef-mongodb
  3. bundle install
  4. bundle exec rake

This will run all of the tests once. While developing, run bundle exec guard start and the relevant tests will run automatically when you save a file.

Author

Copyright (c) 2015 Logan Koester. Released under the MIT license. See LICENSE for details.

About

A Chef cookbook for installing the MongoDB database server

License:MIT License


Languages

Language:Ruby 92.5%Language:HTML 7.5%