This is an OpsCode Chef cookbook for Apache Cassandra (DataStax Community Edition).
It uses officially released Debian packages, provides Upstart service script but has no way to tweak Cassandra configuration parameters using Chef node attributes. The reason for that is it was created for CI and development environments. Attributes will be used in the future, doing so for single-server installations won't be difficult.
This cookbook currently provides
- Cassandra 1.2.x via tarballs
- Cassandra 1.2.x (DataStax Community Edition) via packages.
Ubuntu 11.04, 11.10, 12.04.
Two provided recipes are cassandra::tarball
and cassandra::datastax
. The former uses official tarballs
and thus can be used to provision any specific version.
The latter uses DataStax Debian repository and provisions Cassandra 1.2
.
node[:cassandra][:version]
(default:1.2.3
): version to provisionnode[:cassandra][:tarball][:url]
andnode[:cassandra][:tarball][:md5]
specify tarball URL and MD5 chechsum used by thecassandra::tarball
recipe.node[:cassandra][:user]
: username Cassandra node process will usenode[:cassandra][:jvm][:xms]
(default:32
) andnode[:cassandra][:jvm][:xmx]
(default:512
) control JVM-Xms
and-Xms
flag values, in megabytes (no need to add them
suffix)node[:cassandra][:installation_dir]
(default:/usr/local/cassandra
): installation directorynode[:cassandra][:data_root_dir]
(default:/var/lib/cassandra
): data directory rootnode[:cassandra][:log_dir]
(default:/var/log/cassandra
): log directorynode[:cassandra][:rpc_address]
(default:localhost
): address to bind the RPC interface
OracleJDK 7, OpenJDK 7, OpenJDK 6 or Sun JDK 6.
Michael S. Klishin, Travis CI Development Team, 2012.
Released under the Apache 2.0 License.