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

Select Status

RSS

kafka-manager (4) Versions 0.1.3

Installs/Configures kafka-manager

Policyfile
Berkshelf
Knife
cookbook 'kafka-manager', '~> 0.1.3', :supermarket
cookbook 'kafka-manager', '~> 0.1.3'
knife supermarket install kafka-manager
knife supermarket download kafka-manager
README
Dependencies
Changelog
Quality 17%

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

If using a wrapper cookbook, you could use search to automatically fetch the zookeeper hosts from the chef server

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

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

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.3

Fixes bug where wouldn't restart service

0.1.2

Manages init script to work around issue https://github.com/yahoo/kafka-manager/issues/13#issuecomment-160996849

0.1.1

Updates metadata for supermarket

0.1.0

Initial Release

Collaborator Number Metric
            

0.1.3 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.3 failed this metric

FC064: Ensure issues_url is set in metadata: kafka-manager/metadata.rb:1
FC065: Ensure source_url is set in metadata: kafka-manager/metadata.rb:1
FC066: Ensure chef_version is set in metadata: kafka-manager/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.3 passed this metric

Testing File Metric
            

0.1.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number