Skip to content

pallet/cassandra-crate

Repository files navigation

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

A pallet crate to install and configure cassandra.

Dependency Information

:dependencies [[com.palletops/cassandra-crate "0.8.0-alpha.1"]]

Releases

PalletCrate VersionRepoGroupId
0.8.0-beta.6 0.8.0-alpha.1 clojars com.palletops Release Notes Source

Usage

The server-spec function provides a convenient pallet server spec for cassandra. It takes a single map as an argument, specifying configuration choices, as described below for the settings function. You can use this in your own group or server specs in the :extends clause.

(require '[pallet.crate.cassandra :as cassandra])
(group-spec my-cassandra-group
  :extends [(cassandra/server-spec {})])

While server-spec provides an all-in-one function, you can use the individual plan functions as you see fit.

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 cassandra.

The install function is responsible for actually installing cassandra.

The configure function writes the cassandra configuration file, using the form passed to the :config key in the settings function.

Credits

Many thanks to Pierre-Yves Ritschard for considerable input on the 0.8 crate.

Support

On the group, or #pallet on freenode irc.

License

Licensed under EPL

Copyright 2013 Hugo Duncan.