cookbook 'kafka', '~> 4.0.0'
kafka
(38) Versions
4.0.0
-
Follow26
Provides custom resources for installing and configuring Apache Kafka brokers
cookbook 'kafka', '~> 4.0.0', :supermarket
knife supermarket install kafka
knife supermarket download kafka
kafka cookbook
Provides custom resources for installing and configuring Apache Kafka brokers.
This cookbook is a full custom-resource cookbook. It does not provide recipes or node attributes.
See [migration.md](migration.md) when upgrading from the legacy recipe API.
Requirements
- Chef Infra Client 15.3 or later
- Java 17 or later installed by the caller
- systemd
Kafka is extracted from Apache binary tarballs. The kafka_install resource installs the platform
tar package when it converges.
See [LIMITATIONS.md](LIMITATIONS.md) for platform and Kafka version constraints.
Resources
- [kafka_broker](documentation/kafka_broker.md)
- [kafka_install](documentation/kafka_install.md)
- [kafka_config](documentation/kafka_config.md)
- [kafka_service](documentation/kafka_service.md)
Basic Usage
kafka_broker 'default' do automatic_start true format_storage true cluster_id 'MkU3OEVBNTcwNTJENDM2Qk' broker_config( 'process.roles' => 'broker,controller', 'node.id' => 1, 'controller.quorum.voters' => '1@localhost:9093', 'listeners' => 'PLAINTEXT://:9092,CONTROLLER://:9093', 'advertised.listeners' => 'PLAINTEXT://localhost:9092', 'controller.listener.names' => 'CONTROLLER', 'listener.security.protocol.map' => 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT', 'inter.broker.listener.name' => 'PLAINTEXT', 'log.dirs' => '/var/lib/kafka/data' ) end
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook
maintainers working together to maintain important cookbooks. For more information, visit
sous-chefs.org or join the Chef Community Slack in
#sous-chefs.
Contributing
- Fork the repository on GitHub.
- Create a named feature branch.
- Write your change with tests.
- Run
cookstyle,chef exec rspec, and the relevant Kitchen suites. - Submit a pull request.
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers.
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
4.0.0 (2026-05-19)
⚠ BREAKING CHANGES
- migrate kafka to custom resources (#245)
Features
Bug Fixes
3.1.25 (2025-10-16)
Bug Fixes
3.1.24 - 2025-09-04
Standardise files with files in sous-chefs/repo-management
3.1.23 - 2024-11-18
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
3.1.22 - 2024-07-15
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
3.1.16 - 2023-04-07
Standardise files with files in sous-chefs/repo-management
3.1.13 - 2023-04-01
Standardise files with files in sous-chefs/repo-management
3.1.12 - 2023-03-20
Standardise files with files in sous-chefs/repo-management
3.1.11 - 2023-03-15
Standardise files with files in sous-chefs/repo-management
3.1.9 - 2023-02-23
Standardise files with files in sous-chefs/repo-management
3.1.8 - 2023-02-16
Standardise files with files in sous-chefs/repo-management
3.1.6 - 2023-02-15
Standardise files with files in sous-chefs/repo-management
3.1.3 - 2022-12-09
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
- Standardise files with files in sous-chefs/repo-management
- Remove delivery folder
3.1.2 - 2021-08-30
- Standardise files with files in sous-chefs/repo-management
3.1.1 - 2021-06-01
- resolved cookstyle error: test/integration/default/serverspec/default_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/Gemfile:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/spec_helper.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/support/await_helper.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/support/files_common.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/support/platform_helpers.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/helpers/serverspec/support/service_common.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/runit/serverspec/required_files_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/runit/serverspec/service_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/systemd/serverspec/required_files_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/systemd/serverspec/service_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/sysv/serverspec/required_files_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/sysv/serverspec/service_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/upstart/serverspec/required_files_spec.rb:1:1 convention:
Style/Encoding - resolved cookstyle error: test/integration/upstart/serverspec/service_spec.rb:1:1 convention:
Style/Encoding
3.1.0
- Dokken tests
- Migrated to Github Actions
Fixed
- resolved cookstyle error: recipes/_install.rb:26:9 refactor:
ChefCorrectness/ChefApplicationFatal - resolved cookstyle error: recipes/_install.rb:30:9 refactor:
ChefCorrectness/ChefApplicationFatal
3.0.0
- Move to Sous-Chefs organision
Collaborator Number Metric
4.0.0 passed this metric
Contributing File Metric
4.0.0 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
Cookstyle Metric
4.0.0 passed this metric
No Binaries Metric
4.0.0 passed this metric
Testing File Metric
4.0.0 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
4.0.0 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
4.0.0 passed this metric
4.0.0 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
Cookstyle Metric
4.0.0 passed this metric
No Binaries Metric
4.0.0 passed this metric
Testing File Metric
4.0.0 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
4.0.0 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
4.0.0 passed this metric
4.0.0 passed this metric
Testing File Metric
4.0.0 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
4.0.0 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
4.0.0 failed this metric
4.0.0 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