Skip to content

usri/ansible-apacheKafkaServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KafkaServer

This ansible Playbook provides resources for installing, configuring and managing Apache Kafka. Installs Apache Kafka from a .tgz source and installs the appropriate configuration for your platform's init system.

It also installs OpenJDK1.8.

Project Structure

.
├── LICENSE
├── README.md
├── ansible.cfg
├── apache_kafka.yml
├── hosts
└── roles
    └── install
        ├── defaults
        │   └── main.yml
        ├── handlers
        │   └── main.yml
        ├── tasks
        │   └── main.yml
        └── templates
            ├── kafka.service.j2
            └── zookeeper.service.j2

Requirements

Platform Support

  • RHEL 7.x
  • CentOS 7.x

Versions

  • ansible 2.9.1

Authentication

It uses key based authentication and it assumes you already have a key and you can configure the path using the ansible_ssh_private_key_file variable in hosts file. You can create one using this command:

ssh-keygen -t rsa -b 4096 -m PEM -C vm@mydomain.com -f ~/.ssh/vm_ssh

Role Variables

This variables and their default values are located in roles/install/defaults/main.yml

kafka_version: 2.3.0
kafka_scala_version: 2.12
kafka_user: kafkaAdmin
kafka_group: kafkaAdmin
kafka_root_dir: /opt
kafka_dir: '{{ kafka_root_dir }}/kafka'

Usage

ansible-playbook --syntax-check apache_kafka.yml
ansible-playbook apache_kafka.yml

HOSTS file

The hosts file is the inventory file where you need to provide the IPs of the servers that need to be configured. You can also configure the SSH Key to use, username and SSH port.

You can create test servers using this terraform script

Authors

Marcelo Zambrana

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published