Skip to content

Commit

Permalink
Test Kafka 3.X using 3.6.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenSorriaux committed Dec 5, 2023
1 parent 53acaf0 commit 74ad610
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ platforms:
- ${MOLECULE_SCENARIO_DIRECTORY}/tls:/opt/kafka/tls
groups:
- kafka
# 3.4.0
- name: zookeeper-340
# 3.6.0
- name: zookeeper-360
image: zookeeper:3.6
command: "bin/zkServer.sh start-foreground"
published_ports:
Expand All @@ -290,24 +290,24 @@ platforms:
networks:
- name: molecule
aliases:
- zookeeper-340
- zookeeper-360
volumes:
- ${MOLECULE_SCENARIO_DIRECTORY}/zoo-tls.cfg:/conf/zoo.cfg
- ${MOLECULE_SCENARIO_DIRECTORY}/tls:/opt/zookeeper/tls
groups:
- zookeeper
- zookeeper-tls
- name: kafka1-340
hostname: kafka1-340
image: ssorriaux/kafka:2.13-3.4.0
- name: kafka1-360
hostname: kafka1-360
image: ssorriaux/kafka:2.13-3.6.0
command: "start-kafka.sh"
env:
HOSTNAME_COMMAND: "hostname -i | cut -d' ' -f1"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://_{HOSTNAME_COMMAND}:9092,SASL_PLAINTEXT://_{HOSTNAME_COMMAND}:9094,SASL_SSL://_{HOSTNAME_COMMAND}:9095,SSL://_{HOSTNAME_COMMAND}:9096
KAFKA_LISTENERS: PLAINTEXT://:9092,SASL_PLAINTEXT://:9094,SASL_SSL://:9095,SSL://:9096
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper-340:2181
KAFKA_ZOOKEEPER_CONNECT: zookeeper-360:2181
KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
KAFKA_SUPER_USERS: User:admin
KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
Expand All @@ -325,7 +325,7 @@ platforms:
networks:
- name: molecule
links:
- zookeeper-340
- zookeeper-360
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${MOLECULE_SCENARIO_DIRECTORY}/kafka_server_jaas.conf:/opt/kafka/jaas/kafka_server_jaas.conf
Expand All @@ -334,17 +334,17 @@ platforms:
- kafka
- kafka1
- kafka1_zk_tls
- name: kafka2-340
hostname: kafka2-340
image: ssorriaux/kafka:2.13-3.4.0
- name: kafka2-360
hostname: kafka2-360
image: ssorriaux/kafka:2.13-3.6.0
command: "start-kafka.sh"
env:
HOSTNAME_COMMAND: "hostname -i | cut -d' ' -f1"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://_{HOSTNAME_COMMAND}:9092,SASL_PLAINTEXT://_{HOSTNAME_COMMAND}:9094,SASL_SSL://_{HOSTNAME_COMMAND}:9095,SSL://_{HOSTNAME_COMMAND}:9096
KAFKA_LISTENERS: PLAINTEXT://:9092,SASL_PLAINTEXT://:9094,SASL_SSL://:9095,SSL://:9096
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper-340:2181
KAFKA_ZOOKEEPER_CONNECT: zookeeper-360:2181
KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
KAFKA_SUPER_USERS: User:admin
KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
Expand All @@ -362,7 +362,7 @@ platforms:
networks:
- name: molecule
links:
- zookeeper-340
- zookeeper-360
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${MOLECULE_SCENARIO_DIRECTORY}/kafka_server_jaas.conf:/opt/kafka/jaas/kafka_server_jaas.conf
Expand Down Expand Up @@ -390,8 +390,8 @@ provisioner:
- protocol_version: "2.8.2"
instance_suffix: "282"
zk_tls: true
- protocol_version: "3.4.0"
instance_suffix: "340"
- protocol_version: "3.6.0"
instance_suffix: "360"
zk_tls: true
topic_defaut_configuration:
state: 'present'
Expand Down

0 comments on commit 74ad610

Please sign in to comment.