cookbook 'kafka-manager', '= 0.1.1'
kafka-manager (4) Versions 0.1.1 Follow1
Installs/Configures kafka-manager
cookbook 'kafka-manager', '= 0.1.1', :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
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.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
0.1.1 failed this metric
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