Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.9 KB

File metadata and controls

81 lines (58 loc) · 2.9 KB

kafka cookbook

Cookbook Version OpenCollective OpenCollective License

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.

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 for platform and Kafka version constraints.

Resources

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.

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website