Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Zookeeper 3.9.2 #52

Merged
merged 3 commits into from
Aug 29, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ See <https://github.com/ansible/ansible/issues/71528> for more information.
| Variable | Default | Comment |
| ---------------------------------------- | ----------------------------------------------------------------- | -------------------------------------------------------------- |
| zookeeper_mirror | <https://dlcdn.apache.org/zookeeper> | |
| zookeeper_version | 3.9.1 | |
| zookeeper_version | 3.9.2 | |
| zookeeper_package | apache-zookeeper-{{ zookeeper_version }}-bin.tar.gz | |
| zookeeper_group | zookeeper | |
| zookeeper_user | zookeeper | |
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Installation variables

zookeeper_version: 3.9.1
zookeeper_version: 3.9.2
zookeeper_mirror: https://dlcdn.apache.org/zookeeper
zookeeper_package: apache-zookeeper-{{ zookeeper_version }}-bin.tar.gz

Expand Down
21 changes: 15 additions & 6 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,40 +32,49 @@ platforms:
groups:
- zookeeper-nodes
- name: zookeeper-2
image: rockylinux:8
image: geerlingguy/docker-debian10-ansible:latest
docker_networks:
- name: zookeeper
ipam_config:
- subnet: '172.26.0.0/16'
networks:
- name: zookeeper
ipv4_address: '172.26.10.2'
etc_hosts: "{'zookeeper-1': '172.26.10.1', 'zookeeper-3': '172.26.10.3'}"
pre_build_image: true
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: '/usr/lib/systemd/systemd'
pre_build_image: true
capabilities:
- SYS_ADMIN
command: /lib/systemd/systemd
groups:
- zookeeper-nodes
- name: zookeeper-3
image: rockylinux:8
image: geerlingguy/docker-debian10-ansible:latest
docker_networks:
- name: zookeeper
ipam_config:
- subnet: '172.26.0.0/16'
networks:
- name: zookeeper
ipv4_address: '172.26.10.3'
etc_hosts: "{'zookeeper-1': '172.26.10.1', 'zookeeper-2': '172.26.10.2'}"
pre_build_image: true
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: '/usr/lib/systemd/systemd'
pre_build_image: true
capabilities:
- SYS_ADMIN
command: /lib/systemd/systemd
groups:
- zookeeper-nodes
provisioner:
Expand Down
8 changes: 4 additions & 4 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
- "'zookeeper' in getent_passwd"
- "'zookeeper' in getent_group"

- name: Register '/usr/share/apache-zookeeper-3.9.1' installation directory status
- name: Register '/usr/share/apache-zookeeper-3.9.2' installation directory status
ansible.builtin.stat:
path: '/usr/share/apache-zookeeper-3.9.1'
path: '/usr/share/apache-zookeeper-3.9.2'
register: install_dir

- name: Assert that '/usr/share/apache-zookeeper-3.9.1' directory is created
- name: Assert that '/usr/share/apache-zookeeper-3.9.2' directory is created
ansible.builtin.assert:
that:
- install_dir.stat.exists
Expand All @@ -39,7 +39,7 @@
that:
- zookeeper_dir.stat.exists
- zookeeper_dir.stat.islnk
- zookeeper_dir.stat.lnk_target == '/usr/share/apache-zookeeper-3.9.1'
- zookeeper_dir.stat.lnk_target == '/usr/share/apache-zookeeper-3.9.2'

- name: Register '/etc/zookeeper' directory status
ansible.builtin.stat:
Expand Down
Loading