mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-04 12:12:19 -07:00
[PR #10638/07ce0041 backport][stable-10] CI: Add Debian 13 Trixie (#10780)
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
CI: Add Debian 13 Trixie (#10638)
* Add Debian 13 Trixie to CI.
* Add adjustments.
* Disable one apache2_module test for Debian 13.
* Disable ejabberd_user test on Debian 13.
* Fix paramiko install.
* Skip cloud_init_data_facts on Debian 13.
* Fix postgresql setup.
* Fix timezone tests.
(cherry picked from commit 07ce00417d
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
5436a0c602
commit
ee895080fb
15 changed files with 85 additions and 11 deletions
|
@ -406,10 +406,12 @@ stages:
|
|||
parameters:
|
||||
testFormat: devel/linux-community/{0}
|
||||
targets:
|
||||
- name: Debian Bullseye
|
||||
- name: Debian 11 Bullseye
|
||||
test: debian-bullseye/3.9
|
||||
- name: Debian Bookworm
|
||||
- name: Debian 12 Bookworm
|
||||
test: debian-bookworm/3.11
|
||||
- name: Debian 13 Trixie
|
||||
test: debian-13-trixie/3.13
|
||||
- name: ArchLinux
|
||||
test: archlinux/3.13
|
||||
groups:
|
||||
|
|
6
tests/integration/targets/android_sdk/vars/Debian-11.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Debian-11.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# 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
|
||||
|
||||
openjdk_pkg: openjdk-17-jre-headless
|
6
tests/integration/targets/android_sdk/vars/Debian-12.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Debian-12.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# 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
|
||||
|
||||
openjdk_pkg: openjdk-17-jre-headless
|
|
@ -3,4 +3,4 @@
|
|||
# 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
|
||||
|
||||
openjdk_pkg: openjdk-17-jre-headless
|
||||
openjdk_pkg: openjdk-21-jre-headless
|
||||
|
|
|
@ -88,6 +88,8 @@
|
|||
community.general.apache2_module:
|
||||
name: evasive
|
||||
state: present
|
||||
# TODO: fix for Debian 13 (Trixie)!
|
||||
when: ansible_distribution != 'Debian' or ansible_distribution_major_version is version('13', '<')
|
||||
|
||||
- name: use identifier to enable module, fix for https://github.com/ansible/ansible/issues/33669
|
||||
community.general.apache2_module:
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
- not (ansible_distribution == "CentOS" and ansible_distribution_major_version|int == 8) # TODO: cannot start service
|
||||
- not (ansible_distribution == 'Archlinux') # TODO: package seems to be broken, cannot be downloaded from mirrors?
|
||||
- not (ansible_distribution == 'Alpine') # TODO: not sure what's wrong here, the module doesn't return what the tests expect
|
||||
- not (ansible_distribution == 'Debian' and ansible_distribution_major_version|int == 13) # TODO: not sure what's wrong here, the module doesn't return what the tests expect
|
||||
block:
|
||||
- name: setup install cloud-init
|
||||
package:
|
||||
|
|
|
@ -12,9 +12,11 @@
|
|||
ansible.builtin.meta: end_play
|
||||
# TODO: remove Archlinux from the list
|
||||
# TODO: remove Ubuntu 24.04 (noble) from the list
|
||||
# TODO: remove Debian 13 (Trixie) from the list
|
||||
when: >
|
||||
ansible_distribution in ('Alpine', 'openSUSE Leap', 'CentOS', 'Fedora', 'Archlinux')
|
||||
or (ansible_distribution == 'Ubuntu' and ansible_distribution_release in ['noble'])
|
||||
or (ansible_distribution == 'Debian' and ansible_distribution_major_version == '13')
|
||||
|
||||
- name: Remove ejabberd
|
||||
ansible.builtin.package:
|
||||
|
|
|
@ -8,9 +8,13 @@
|
|||
# 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
|
||||
|
||||
- debug:
|
||||
msg: "{{ ansible_os_family }} / {{ ansible_distribution }} / {{ ansible_distribution_major_version }}"
|
||||
|
||||
- when:
|
||||
- ansible_os_family != 'Archlinux' # TODO install driver from AUR: https://aur.archlinux.org/packages/psqlodbc
|
||||
- ansible_os_family != 'RedHat' or ansible_distribution_major_version != '7' # CentOS 7 stopped working
|
||||
- ansible_distribution != 'Debian' or ansible_distribution_major_version != '13' # TODO fix tests for Debian 13 (Trixie)!
|
||||
block:
|
||||
|
||||
#
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# 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
|
||||
|
||||
keytool_package_names:
|
||||
- ca-certificates-java
|
||||
- openjdk-21-jre-headless
|
8
tests/integration/targets/setup_paramiko/meta/main.yml
Normal file
8
tests/integration/targets/setup_paramiko/meta/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# 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
|
||||
|
||||
dependencies:
|
||||
- setup_remote_constraints
|
||||
- setup_pkg_mgr
|
23
tests/integration/targets/setup_paramiko/tasks/main.yml
Normal file
23
tests/integration/targets/setup_paramiko/tasks/main.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
####################################################################
|
||||
# WARNING: These are designed specifically for Ansible tests #
|
||||
# and should not be used as examples of how to write Ansible roles #
|
||||
####################################################################
|
||||
|
||||
# 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
|
||||
|
||||
- name: Install required libs
|
||||
pip:
|
||||
name:
|
||||
- paramiko
|
||||
state: present
|
||||
extra_args: "-c {{ remote_constraints }}"
|
||||
when: ansible_distribution != 'Debian' or ansible_distribution_major_version is version('13', '<')
|
||||
|
||||
- name: Install required libs (Debian 13+)
|
||||
package:
|
||||
name: python3-paramiko
|
||||
state: present
|
||||
when: ansible_distribution == 'Debian' and ansible_distribution_major_version is version('13', '>=')
|
|
@ -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/17/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/17/main"
|
||||
pg_ver: 17
|
|
@ -4,5 +4,5 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
dependencies:
|
||||
- setup_remote_constraints
|
||||
- setup_paramiko
|
||||
- setup_remote_tmp_dir
|
||||
|
|
|
@ -3,13 +3,6 @@
|
|||
# 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
|
||||
|
||||
- name: Install required libs
|
||||
pip:
|
||||
name:
|
||||
- paramiko
|
||||
state: present
|
||||
extra_args: "-c {{ remote_constraints }}"
|
||||
|
||||
- set_fact:
|
||||
output_test_dir: '{{ remote_tmp_dir }}/test_ssh_config'
|
||||
|
||||
|
|
|
@ -54,6 +54,12 @@
|
|||
state: present
|
||||
when: ansible_distribution == 'Archlinux'
|
||||
|
||||
- name: make sure util-linux-extra are installed on Debian 13+
|
||||
package:
|
||||
name: util-linux-extra
|
||||
state: present
|
||||
when: ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 13
|
||||
|
||||
- name: make sure tzdata is installed on Alpine
|
||||
package:
|
||||
name: tzdata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue