Adoptable Cookbooks List

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Zookeeper

Zookeeper is a coordination and discovery
service maintained by the Apache Software Foundation.

This cookbook focuses on deploying Zookeeper via Chef.

Usage

This cookbook is primarily a library cookbook. It implements a zookeeper
resource to handle the installation and configuration of Zookeeper. It ships
with a default recipe for backwards compatibility pre-LWRP which will work
fine, but is really just an example.

For local development, you can either use Vagrant, in which case you will need
the vagrant-omnibus Vagrant plugin:

vagrant plugin install vagrant-omnibus

Or, you can use Test-Kitchen, which will handle the bootstrapping for you, and
is the preferred method for testing this cookbook (usually via a wrapper
cookbook).

Recipes

zookeeper::default : Installs and configures zookeeper. This does not start or manage the service.

zookeeper::install : Installs the zookeeper but does not configure it.

zookeeper::config_render : Configures zookeeper but does not install it.

zookeeper::service : Starts and manages the zookeeper service. Requires zookeeper to be installed/configured.

Resources

This cookbook ships with one resource, with future plans for two more covering
service management and configuration rendering.

zookeeper

The zookeeper resource is responsible for installing and (eventually)
uninstalling Zookeeper from a node.

Actions: :install, :uninstall

Parameters:
* version: Version of Zookeeper to install (name attribute)
* user: The user who will eventually run Zookeeper (default: 'zookeeper')
* user_home: Path to the home folder for the Zookeeper user (default: /home/zookeeper)
* mirror: The mirror to obtain Zookeeper from (required)
* checksum: Checksum for the Zookeeper download file
* install_dir: Which directory to install Zookeeper to (default:
`'/opt/zookeeper')

zookeeper_config

This resource renders a Zookeeper configuration file. Period-delimited
parameters can be specified either as a flat hash, or by embeddeding each
sub-section within a separate hash. See the example below for an example.

Actions: :render, :delete

Parameters:
* user: The user to give ownership of the file to (default: zookeeper)
* config: Hash of configuration parameters to add to the file
* path: Path to write the configuration file to.

1.4.7

1.4.4

fix for backwards compatibility with ruby 1.8.7

0.1.0:

Initial release of zookeeper

Foodcritic Metric

3.0.3 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:3FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:5FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:6FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:8FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:9FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:10FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:11FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:12FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:13FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:15FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:16FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:17FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:20FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:22FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/attributes/default.rb:29FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/config_render.rb:20FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/config_render.rb:21FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/config_render.rb:22FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/config_render.rb:23FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:17FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:29FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:30FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:31FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:32FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:33FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:34FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:35FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:36FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:41FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:42FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:43FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:44FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/service.rb:17FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/service.rb:18FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/service.rb:22FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:2FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:5FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:7FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:8FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:9FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:10FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/templates/default/environment-defaults.erb:18FC002: Avoid string interpolation where not required: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/config_render.rb:21FC009: Resource attribute not recognised: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:42FC017: LWRP does not notify when updated: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/providers/default.rb:39FC017: LWRP does not notify when updated: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/providers/default.rb:88FC019: Access node attributes in a consistent manner: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:23FC023: Prefer conditional attributes: /tmp/cook/89bf63c618b9e6ace92c38f7/zookeeper/recipes/install.rb:41