Skip to content

A Crate for installing, configuring and managing MongoDB

Notifications You must be signed in to change notification settings

code54/mongodb-crate

 
 

Repository files navigation

Repository · Issues · API docs · Annotated source · Release Notes

A pallet crate to install and configure mongodb.

Dependency Information

:dependencies [[com.palletops/mongodb-crate "0.8.0-alpha.2"]]

Releases

PalletCrate VersionRepoGroupId
0.8.0-RC.7 0.8.0-alpha.2 clojars com.palletops Release Notes Source
0.8.0-RC.4 0.8.0-alpha.1 clojars com.palletops Release Notes Source

Usage

Supports standalone or replica set modes.

The mongodb crate provides a server-spec function that returns a server-spec. This server spec will install and run the mongodb server. You pass a map of options to configure mongodb. The options are as for the settings function.

The server-spec provides an easy way of using the crate functions, and you can use the following crate functions directly if you need to.

The settings function provides a plan function that should be called in the :settings phase. The function puts the configuration options into the pallet session, where they can be found by the other crate functions, or by other crates wanting to interact with mongodb.

The install function is responsible for actually installing mongodb.

Settings

:install-strategy : used to control how mongodb will be installed. Defaults to using the 10gen package sources. See pallet.crate-install for other install strategies.

:config : a map of options that will be used to generate the mongodb conf file. The keys in the map are keywords named after the relevant mongodb conf file entry. If :replSet is specified, then the replica set will be initialised. See http://docs.mongodb.org/manual/reference/configuration-options/.

:supervisor : used to set the supervisor mongodb is run under. Defaults to :upstart on ubuntu, and :initd otherwise.

Live test on vmfest

For example, to run the live test on VMFest, using Ubuntu 13:

lein with-profile +vmfest pallet up --selectors ubuntu-13
lein with-profile +vmfest pallet down --selectors ubuntu-13

MMS

The pallet.crate.mongodb.mms namespace contains support for installing the MMS agent.

License

Copyright (C) 2012, 2013 Hugo Duncan

Distributed under the Eclipse Public License.

About

A Crate for installing, configuring and managing MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 94.3%
  • Shell 5.7%