Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---

sudo: required
dist: trusty
dist: bionic

language: python
python: 2.7
python:
- "3.6.10"
- "3.7.6"
- "3.8.1"

env:
matrix:
- ANSIBLE_VERSION=2.2.3.0 ANSIBLE_EXTRA_VARS="kafka_version=0.11.0.2"
- ANSIBLE_VERSION=2.2.3.0 ANSIBLE_EXTRA_VARS="kafka_version=1.0.1 kafka_generate_broker_id=false"
- ANSIBLE_VERSION=2.4.2.0 ANSIBLE_EXTRA_VARS="kafka_version=0.11.0.2"
- ANSIBLE_VERSION=2.4.2.0 ANSIBLE_EXTRA_VARS="kafka_version=1.0.1"
- ANSIBLE_VERSION=2.9.5 ANSIBLE_EXTRA_VARS="kafka_version=1.0.2"
#- ANSIBLE_VERSION=2.2.3.0 ANSIBLE_EXTRA_VARS="kafka_version=1.1.1"
#- ANSIBLE_VERSION=2.4.2.0 ANSIBLE_EXTRA_VARS="kafka_version=1.0.2"
#- ANSIBLE_VERSION=2.4.2.0 ANSIBLE_EXTRA_VARS="kafka_version=1.1.1"

before_install:
- sudo apt-get update -qq

install:
- pip install ansible==$ANSIBLE_VERSION
- pip3 install ansible==$ANSIBLE_VERSION

script:
- cd test
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

An ansible role to install and configure [kafka](https://kafka.apache.org/) distributed pub/sub messaging queue clusters.

## Requirements

* Python 3.6 or newer

## How to get it

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kafka_zookeeper_port: 2181
kafka_hosts: # <-- must be overridden further up the chain
# e.g. [ 'srvr1', 'srvr2' ]

kafka_version: "0.11.0.2"
kafka_version: "1.0.2"

kafka_scala_version: "2.11"
# NB: 2.11 is recommended at https://kafka.apache.org/downloads.html.
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/defaults/kafka.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
KAFKA_HEAP_OPTS='{{ kafka_heap_opts }}'
LOG_DIR='{{ kafka_log_dir }}'

{% for key, value in kafka_environment.iteritems() %}
{% for key, value in kafka_environment.items() %}
{{key}}={{value}}
{% endfor %}
2 changes: 1 addition & 1 deletion templates/usr/local/kafka/config/server.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,6 @@ offsets.commit.timeout.ms={{ kafka_server.offsets_commit_timeout_ms }}

{% endif %}

{% for key, value in kafka_server.misc.iteritems() -%}
{% for key, value in kafka_server.misc.items() -%}
{{key}}={{value}}
{% endfor -%}