Repository · Issues · API docs · Annotated source · Release Notes
A pallet crate to install and configure mongodb.
:dependencies [[com.palletops/mongodb-crate "0.8.0-alpha.3"]]
Pallet | Crate Version | Repo | GroupId | ||
---|---|---|---|---|---|
0.8.0-RC.9 | 0.8.0-alpha.3 | clojars | com.palletops | Release Notes | Source |
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 |
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.
: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.
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
The pallet.crate.mongodb.mms
namespace contains support for
installing the MMS agent.
Copyright (C) 2012, 2013 Hugo Duncan
Distributed under the Eclipse Public License.