{"id":13752745,"url":"https://github.com/jaytaylor/ansible-kafka","last_synced_at":"2025-10-12T05:31:44.701Z","repository":{"id":33445130,"uuid":"37090485","full_name":"jaytaylor/ansible-kafka","owner":"jaytaylor","description":"Ansible Kafka role","archived":false,"fork":false,"pushed_at":"2020-09-28T10:46:50.000Z","size":72,"stargazers_count":67,"open_issues_count":10,"forks_count":52,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-16T05:32:12.826Z","etag":null,"topics":["ansible","automation","kafka"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/jaytaylor/kafka/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaytaylor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-08T20:17:32.000Z","updated_at":"2024-08-24T08:05:22.000Z","dependencies_parsed_at":"2022-09-12T11:52:12.116Z","dependency_job_id":null,"html_url":"https://github.com/jaytaylor/ansible-kafka","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaytaylor%2Fansible-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaytaylor%2Fansible-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaytaylor%2Fansible-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaytaylor%2Fansible-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaytaylor","download_url":"https://codeload.github.com/jaytaylor/ansible-kafka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236169066,"owners_count":19106105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","automation","kafka"],"created_at":"2024-08-03T09:01:10.393Z","updated_at":"2025-10-12T05:31:39.410Z","avatar_url":"https://github.com/jaytaylor.png","language":null,"funding_links":[],"categories":["kafka"],"sub_categories":[],"readme":"# Ansible Kafka\n\n[![Build Status](https://travis-ci.org/jaytaylor/ansible-kafka.svg?branch=master)](https://travis-ci.org/jaytaylor/ansible-kafka)\n[![Galaxy](https://img.shields.io/badge/galaxy-jaytaylor.kafka-blue.svg)](https://galaxy.ansible.com/list#/roles/4083)\n\nAn ansible role to install and configure [kafka](https://kafka.apache.org/) distributed pub/sub messaging queue clusters.\n\n\n## How to get it\n\nAdd to your playbooks requirements.yml:\n\n    - src: https://github.com/jaytaylor/ansible-kafka\n\nand then run:\n\n    ansible-galaxy install -r requirements.yml --ignore-errors\n\nOr if you just want to grab this role and start using it:\n\n    cd my-playbook-folder/roles\n    git clone https://github.com/jaytaylor/ansible-kafka.git\n    cd -\n\n## How to use it\n\nOnce the role is installed, configure it from your playbook file (e.g. playbook.yml).\n\nExample:\n\n```yml\n    ---\n    - hosts: [all]\n      roles:\n        - {\n          role: \"ansible-kafka\",\n          kafka_hosts: \"{{ groups.kafka | list }}\",\n          kafka_zookeeper_hosts: \"{{ zookeeper_hosts | list }}\"\n          kafka_version: 0.11.0.2,     # Kafka version override.\n          kafka_scala_serverion: 2.10 # Scala version override.\n        }\n```\n\nWhere `kafka_hosts` and `zookeeper_hosts` are both defined variables\n(e.g. in group_vars/all), and contain the list of hosts to use.\n\n## Important Note\n\nIf you are using this role from the ansible-galaxy website, make sure you use \"jaytaylor.kafka\" for the role name (rather than \"ansible-kafka\").\n\n## Role variables\n\n- `kafka_hosts` - list of hosts in the cluster.\n- `kafka_zookeeper_hosts` - list of zookeeper hosts for the cluster.\n- `kafka_broker_id` - Integer uniquely identifying the broker, by default one will be generated for you either by this role or by kafka itself for versions \u003e= 0.9.\n- `kafka_generate_broker_id` - Flag controlling whether to generate a broker id, defaults to `yes`.\n- `kafka_server_defaults` - Default Kafka server settings. This variable shoulnd't usually be changed.\n- `kafka_producer_defaults` - Default Kafka producer settings. This variable shouldn't usually be changed.\n- `kafka_server` - Allows to overwrite particular default server settings (from `kafka_server_defaults` variable). Values in this hash are combined with `kafka_server_defaults` variable.\n- `kafka_producer` - Allows to overwrite particular default producer settings (from `kafka_producer_defaults` variable). Values in this hash are combined with `kafka_server_defaults` variable.\n- `kafka_healthcheck_address` - If not defined, this will dynamicaly set to `kafka_server_defaults.host_name` or `kafka_server.host_name` if defined. Defaults to '127.0.0.1'\n- `kafka_java_version` - Java version to install. Defaults to \"openjdk-7-jre-headless\"\n\n## Version notes\n\nVersion 2.0.0 does not support Ansible versions lower than 2.2.\n\nBefore version 2.0.0, `server` and `producer` Ansible variables were used to configure Kafka Server and Kafka Producer respecively, but 2.0.0 introduced better variable scoping and better variable overwritting:\n\n- `server` variable became `kafka_server`, so it is inside Kafka role \"scope\". It is a hash that is combined with `kafka_server_defaults` hash, overwriting the values defined in the former. This makes easier to overwrite just some particular setting, instead of rewritting the whole `server` variable hash jus tto change one setting.\n- `producer` variable became `kafka_producer`, and it behaves now the same way as `kafka_server` variable. Also `kafka_producer_defaults` hash has the default values for producer.\n\nAlso:\n\n- `healthcheck_address` became `kafka_healthcheck_address`, which improves its scope.\n- `nofiles_limit` became `kafka_nofiles_limit`\n\n## License\n\nBSD\n\n## Author\n\nJay Taylor\n\n[@jtaylor](https://twitter.com/jtaylor) - [jaytaylor.com](http://jaytaylor.com) - [github](https://github.com/jaytaylor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaytaylor%2Fansible-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaytaylor%2Fansible-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaytaylor%2Fansible-kafka/lists"}