Skip to content

Commit a8d47d2

Browse files
authored
Merge pull request #6 from 116davinder/feature/kafka-3-7-0-support
Kafka 2.7.0 & 2.8.0 Support
2 parents 5c0973e + f07ee90 commit a8d47d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+615
-449
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ It is a group of playbooks to manage apache kafka.
1414
2. It assumes you have zookeeper already running in localmode or cluster mode.
1515
3. All tasks like broker/jvm/logging/downgrade/removeOldVersion will be done in serial order.
1616
4. It doesn't support upgrading old kafka clusters from 0.9.0 to 2.x versions.
17+
5. Vagrant 6.x is not stable yet and older versions doesn't have support ubuntu 20 so it might not work.
1718
```
1819

1920
## **Extra**
@@ -180,6 +181,7 @@ It will be installed in similar way to apache kafka but it will start apache kaf
180181
* CentOS 7
181182
* RedHat 7
182183
* Ubuntu / Debain ( under progress, might work :) )
184+
* Amzaon Linux 2
183185

184186
### **Tested Ansible Version**
185187
```

clusterAddNodes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- hosts: clusterAddNodes
44
gather_facts: true
5+
become: true
56
serial: 1
67
roles:
78
- java

clusterAwsPreSetup.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22

3-
- hosts: clusterNodes
3+
- hosts: clusterNodes:clusterAddNodes
44
gather_facts: true
5+
become: true
56
tasks:
67
- name: mount ebs volume
78
ansible.builtin.include_role:
@@ -16,3 +17,8 @@
1617
ansible.builtin.include_role:
1718
name: common
1819
tasks_from: commonUtils.yml
20+
21+
- name: install amazon linux extra package
22+
ansible.builtin.package:
23+
name: "amazon-linux-extras"
24+
state: latest

clusterBrokerProperties.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- hosts: clusterNodes:clusterAddNodes
44
gather_facts: true
5+
become: true
56
serial: 1
67
tasks:
78
- ansible.builtin.include_role:

clusterConsumerMetricSetup.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
- hosts: clusterNodes[2]
44
gather_facts: true
5+
become: true
56
tasks:
67
- name: copy kafka-python package
78
ansible.builtin.copy:
89
src: "roles/jmxMonitor/files/{{ item }}"
910
dest: "/tmp/{{ item }}"
1011
loop:
11-
- kafka_python-2.0.1-py2.py3-none-any.whl
12+
- kafka_python-2.0.2-py2.py3-none-any.whl
1213

1314
- name: installing kafka_python with pip3
1415
ansible.builtin.pip:
1516
name: /tmp/{{ item }}
1617
executable: pip3
1718
loop:
18-
- kafka_python-2.0.1-py2.py3-none-any.whl
19+
- kafka_python-2.0.2-py2.py3-none-any.whl
1920

2021
- include_role:
2122
name: jmxMonitor

clusterDownGradeVersion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- hosts: clusterNodes:clusterAddNodes
44
gather_facts: false
55
any_errors_fatal: true
6+
become: true
67
tasks:
78
- name: check kafka-{{ kafkaOldVersion }} installation files
89
ansible.builtin.stat:

clusterJava.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
- hosts: clusterNodes:clusterAddNodes
44
gather_facts: true
5+
become: true
56
roles:
67
- java

clusterJmxMonitoringSetup.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- hosts: clusterNodes:clusterAddNodes:kafka-mirror-maker
44
gather_facts: true
5+
become: true
56
pre_tasks:
67
- name: install gcc and python-devel ( Redhat / CentOS )
78
ansible.builtin.yum:
@@ -10,7 +11,7 @@
1011
loop:
1112
- gcc
1213
- python3-devel
13-
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
14+
when: ansible_distribution in ['CentOS', 'RedHat'] | list
1415

1516
- name: install gcc and python-devel ( Debain / Ubuntu )
1617
ansible.builtin.apt:
@@ -19,23 +20,23 @@
1920
loop:
2021
- gcc
2122
- python3-dev
22-
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
23+
when: ansible_distribution in ['Debian', 'Ubuntu'] | list
2324

2425
- name: copy jmxquery / psutil tar files
2526
ansible.builtin.copy:
2627
src: "roles/jmxMonitor/files/{{ item }}"
2728
dest: "/tmp/{{ item }}"
2829
loop:
2930
- jmxquery-0.6.0.tar.gz
30-
- psutil-5.7.0.tar.gz
31+
- psutil-5.8.0.tar.gz
3132

3233
- name: installing jmxquery / psutil with pip3
3334
ansible.builtin.pip:
3435
name: /tmp/{{ item }}
3536
executable: pip3
3637
loop:
3738
- jmxquery-0.6.0.tar.gz
38-
- psutil-5.7.0.tar.gz
39+
- psutil-5.8.0.tar.gz
3940

4041
- hosts: clusterNodes:clusterAddNodes
4142
gather_facts: true

clusterJvmConfigs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- hosts: clusterNodes:clusterAddNodes
44
gather_facts: true
5+
become: true
56
serial: 1
67
tasks:
78
- ansible.builtin.include_role:

clusterKafkaManager.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- hosts: kafka-manager
44
gather_facts: true
5+
become: true
56
pre_tasks:
67
- ansible.builtin.include_role:
78
name: common

0 commit comments

Comments
 (0)