Skip to content

appliedcode/chef-mongodb

 
 

Repository files navigation

Build Status

MongoDB cookbook

Yet another Mongodb cookbook.

Description

Configures Mongodb via Opscode Chef

It can handle multiple instances with different configuratioins and differend versions on the same machine.

Please note that this cookbook does not use the 10gen apt repository, and instead downloads the required binaries from a given server.

Supported Platforms

  • Ubuntu
  • Debian

Providers

  • mongodb_instance - Configures mongodb instance

Usage

###Provider parameters:

  • url: url for mongodb binary tgz (default: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz)
  • home: directory for mongodb instance (default "/opt")
  • bind_ip: listen address (default "127.0.0.1")
  • port: listen port (default 27017)
  • default_instance: creates symlink (default false)
  • replSet: replica set name (default not set)
  • smallfiles: use smallfile allocation (default false)
  • journal: use durable journaling (default true)
  • notablescan: disables queries using fts (default true)
  • rest: enable rest interface for monitoring (default true)
  • httpinterface: enable http interface (default true)
  • auth: enable authentication (default false)

A mongodb instance with custom parameters:

mongodb_instance 'example' do
    port '27017'
    bind_ip '0.0.0.0'
    default_instance true
end

TODO

Implement sharded cluster support.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 77.2%
  • Shell 19.1%
  • HTML 3.7%