cookbook 'kafka-manager', '~> 0.1.3'
kafka-manager (4) Versions 0.1.3 Follow1
Installs/Configures kafka-manager
cookbook 'kafka-manager', '~> 0.1.3', :supermarket
knife supermarket install kafka-manager
knife supermarket download kafka-manager
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
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
- 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" } } }
- 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
0.1.3 failed this 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
0.1.3 failed this metric
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
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
0.1.3 failed this 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