From 8b5dc27d235e1fe3e047f507583cd828d6308940 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 24 Jun 2023 16:29:16 +0200 Subject: [PATCH] Add Debian Bookworm to CI (#6779) * Add Debian Bookworm to CI. * The package has been netcat-openbsd for some time now. The transitional package was removed in Debian 12. --- .azure-pipelines/azure-pipelines.yml | 2 ++ .../targets/listen_ports_facts/tasks/main.yml | 2 +- .../setup_postgresql_db/vars/Debian-12-py3.yml | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/integration/targets/setup_postgresql_db/vars/Debian-12-py3.yml diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index b4c536205e2..097c5585a8c 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -337,6 +337,8 @@ stages: targets: - name: Debian Bullseye test: debian-bullseye/3.9 + - name: Debian Bookworm + test: debian-bookworm/3.11 - name: ArchLinux test: archlinux/3.11 - name: CentOS Stream 8 diff --git a/tests/integration/targets/listen_ports_facts/tasks/main.yml b/tests/integration/targets/listen_ports_facts/tasks/main.yml index 70649f50561..0e583e7a13d 100644 --- a/tests/integration/targets/listen_ports_facts/tasks/main.yml +++ b/tests/integration/targets/listen_ports_facts/tasks/main.yml @@ -13,7 +13,7 @@ ansible.builtin.package: name: - net-tools - - netcat + - netcat-openbsd state: latest when: ansible_os_family == "Debian" diff --git a/tests/integration/targets/setup_postgresql_db/vars/Debian-12-py3.yml b/tests/integration/targets/setup_postgresql_db/vars/Debian-12-py3.yml new file mode 100644 index 00000000000..c922402376e --- /dev/null +++ b/tests/integration/targets/setup_postgresql_db/vars/Debian-12-py3.yml @@ -0,0 +1,13 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + +postgresql_packages: + - "postgresql" + - "postgresql-common" + - "python3-psycopg2" + +pg_hba_location: "/etc/postgresql/15/main/pg_hba.conf" +pg_dir: "/var/lib/postgresql/15/main" +pg_ver: 15