Yet another Mongodb cookbook.
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.
- Ubuntu
- Debian
mongodb_instance
- Configures mongodb instance
###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)
mongodb_instance 'example' do
port '27017'
bind_ip '0.0.0.0'
default_instance true
end
Implement sharded cluster support.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Mohit Sethi mohit@sethis.in