zuul-jobs/roles/ensure-zookeeper/tasks/Debian-12.yaml
James E. Blair df906ec2f7 Fix zookeeper install on debian bookworm
This is a workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030129
which prevents installation of the JDK on bookworm.

This also updates the test platforms for this role.

Change-Id: I1efe59a4e7884fffe15bc623f717f891189f48ca
2023-08-11 14:59:50 -07:00

36 lines
1.0 KiB
YAML

# Due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030129
# install certs before the JDK.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023748 has more details
# including the request that the fix be backported to stable. TODO: once the
# backport has been made we can stop installing from testing
- name: Block to collect java cert package install steps
block:
- name: Enable testing repo
apt_repository:
repo: deb http://deb.debian.org/debian testing main
state: present
update_cache: yes
filename: debian-testing
become: true
- name: Install Java certs
apt:
name: ca-certificates-java
default_release: testing
state: present
become: true
- name: Disable testing repo
apt_repository:
repo: deb http://deb.debian.org/debian testing main
state: absent
update_cache: yes
filename: debian-testing
become: true
- name: Install JDK
apt:
name: default-jdk-headless
state: present
become: true