This is a lightweight OpsCode Chef cookbook for Apache ZooKeeper that supports Ubuntu and Debian.
It uses standard apt repository packages, allows you to tweak JVM and zoo.cfg
parameters
using Chef node attributes and is intentionally small, simple and limited in scope.
This cookbook uses standard apt packages so the exact version will vary between distribution releases. For recent Ubuntu releases, it is ZooKeeper 3.3.
Main recipe is zookeeper::default
.
All the attributes below are namespaced under node[:zookeeper]
, so :jvm_opts
is accessible
via node[:zookeeper][:jvm_opts]
and so on.
:jvm_opts
: command line switches that will be passed to JVM on server start (like-Djava.net.preferIPv4Stack
):client_port
: port ZooKeeper clients will use to connect, 2181 by default:servers
: a list of server lines as accepted in ZooKeeper configuration file, empty by default.
OpenJDK 6 or Sun JDK 6.
Michael S. Klishin & Orceo GmbH, 2012.
Released under the Apache 2.0 license.