Giter Club home page Giter Club logo

confluent-kafka-role's Introduction

Confluent Kafka Ansible Role

This Ansible Role aims to install and configure Apache Kafka and Apache Zookeeper using the Confluent package.

All configurations can be passed through vars, you can see the list of necessary vars at defaults and customize them as you wish.

Getting Started

Prerequisites

Ansible 2.2+, Python and Pip.

pip install ansible>=2.2.0

After installing Ansible, you must install a Java role, and use it in your playbook. Kafka needs a JVM to run.

It's strongly recommended (as you can see here) to run the latest version of Oracle JDK 1.8 (Java 8) or Java 11.

Requirements includes Ansiblebit Oracle Java role, which can be easily installed through:

ansible-galaxy install -r requirements.yaml

Tests

The test suite is currently executing against Ansible 2.9.6 (as you can see here), inside Docker containers running both major Python versions (2 and 3).

For further information on the Docker images being used to run containers on the CI, take a look at docker-ansible

Family Distribution Version Test Status
Alpine Alpine Linux 3.8+ x86_64
RedHat CentOS 6 x86_64
RedHat CentOS 7 x86_64
Debian Debian 8 (Jessie) x86_64
Debian Debian 9 (Stretch) x86_64
Debian Debian 10 (Buster) x86_64
RedHat Fedora 27 Cloud x86_64
Debian Ubuntu 16.04 (Xenial) x86_64
Debian Ubuntu 18.04 (Bionic) x86_64
Debian Ubuntu 20.04 (Bionic) x86_64

Quickstart

Example playbook

---
- hosts: kafka,zookeeper

  vars:
    dst_path: "/opt"
    local_path: "/tmp"
    confluent_version: "5.4.0"
    scala_version: "2.12"
    confluent_distribution: "confluent-community"
    log_basepath: "/var/log"
    data_basepath: "/var/data"
    initscripts_path: "/usr/sbin"
    conf_dest: "/etc/config"
    # Oracle Java necessary vars. IF you are using ansiblebit.oracle-java
    oracle_java_set_as_default: yes
    oracle_java_version: 8

  roles:
    - ansiblebit.oracle-java
    - macunha1.confluent-kafka

Minimal playbook

---
- hosts: kafka,zookeeper

  roles:
    - ansiblebit.oracle-java
    - macunha1.confluent-kafka

Example inventory

[kafka]
192.168.50.3

[zookeeper]
192.168.50.3

Built With

Contribute

PRs Welcome

  • Feel free to fill an issue with feature request(s), or to send me a Pull request, I will be happy to collaborate.
  • If this role didn't work for you, or if you found some bug during the execution, let me know.

Thanks to these amazing contributors for making this role better

confluent-kafka-role's People

Contributors

macunha1 avatar brettminnie avatar roccodigirolamo avatar ftieben avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.