Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

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.

Select Badges

Select Supported Platforms

RSS

kafka-manager (4) Versions 0.1.1

Installs/Configures kafka-manager

Berkshelf/Librarian
Policyfile
Knife
cookbook 'kafka-manager', '= 0.1.1'
cookbook 'kafka-manager', '= 0.1.1', :supermarket
knife cookbook site install kafka-manager
knife cookbook site download kafka-manager
README
Dependencies
Changelog
Quality

kafka-manager

Installs java and downloads kafka-manager from package cloud Note, these are unofficial packages. Follow this github issue for the status of official packages.

The packages are currently only available for ubuntu, centos images will be created if needed

spuder/kafka-manager

Warning kafka-manager 1.2.8 and newer don't work well with large clusters. The default is version 1.2.7

Supports

  • Ubuntu 14.04
  • Centos (Untested)

Usage

This cookbook uses custom resources so chef 12.5 or newer is required. The cookbook can be used in 2 ways

  1. As a community cookbook

Create a role and add java and kafka-manager to your run_list

{
  "run_list": [
    "recipe[apt]",
    "recipe[java]",
    "recipe[kafka-manager]"
  ],
  "default_attributes": {
    "kafka-manager":{
      "zkhosts": "foo:2181,bar:2181",
      "version": "1.2.7"
    }
  }
}
  1. As a library cookbook

Create a wrapper cookbook and call the custom resources directly


kafka_manager 'default' do
  repo 'spuder/kafka-manager'
  package_version '1.2.7'
  action :install
end

template '/usr/share/kafka-manager/conf/application.conf' do
  source 'application.conf.erb'
  variables ({
    :zkhosts => "#{node['kafka-manager']['zkhosts']}"
  })
  notifies :restart, 'service[kafka-manager]'
end

service 'kafka-manager' do
  action [ :enable, :start ]
end

By default kafka-manager runs on port 9000. You may want to setup a reverse proxy to redirect requests from port 80 A recipe and a custom resource are provided that will install nginx and setup the redirect.

In your role

"run_list": [
  "recipe[apt]",
  "recipe[java]",
  "recipe[kafka-manager]"
  "recipe[kafka-manager::nginx]"
]

Or in your wrapper cookbook

kafka_proxy 'default' do
  action :create
end

Attributes

Change the value of 'zkhosts' to the zookeeper servers

 node['kafka-manager']['zkhosts']= 'foo:2181,bar:2181'

kafka-manager-cookbook is not affiliated with Yahoo or the creators of kafka-manager.

Dependent cookbooks

java >= 0.0.0
packagecloud >= 0.0.0
apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.1

Updates metadata for supermarket

0.1.0

Initial Release

Foodcritic Metric
            

0.1.1 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/recipes/default.rb:8
FC002: Avoid string interpolation where not required: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/recipes/default.rb:15
FC002: Avoid string interpolation where not required: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/resources/install.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/resources/install.rb:24
FC002: Avoid string interpolation where not required: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/resources/install.rb:29
FC016: LWRP does not declare a default action: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/resources/install.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/94b7702e23468102ab1480a9/kafka-manager/resources/nginx.rb:1