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 when upgrading from the legacy recipe API.
- 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 for platform and Kafka version constraints.
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'
)
endThis 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.
- 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.
This project exists thanks to all the people who contribute.
Thank you to all our backers.
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.