Skip to content

Commit d0b98cb

Browse files
authored
Add Debian 13 support (#1191)
1 parent 26832fb commit d0b98cb

File tree

6 files changed

+46
-14
lines changed

6 files changed

+46
-14
lines changed

.github/workflows/molecule.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
config:
19+
- distro: debian13
20+
tag: latest
1921
- distro: debian12
2022
tag: latest
2123
namespace: geerlingguy
@@ -33,12 +35,6 @@ jobs:
3335
- distro: almalinux10
3436
tag: latest
3537
namespace: glillico
36-
- distro: centosstream10
37-
tag: latest
38-
namespace: glillico
39-
- distro: oraclelinux10
40-
tag: latest
41-
namespace: glillico
4238

4339
steps:
4440
- name: Set TERM environment variable
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: scheduled PostgreSQL (Debian 13)
3+
4+
on:
5+
schedule:
6+
- cron: "15 0 * * *"
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Set TERM environment variable
14+
run: echo "TERM=xterm" >> $GITHUB_ENV
15+
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.13"
23+
24+
- name: Install dependencies
25+
run: make bootstrap-dev
26+
27+
- name: Run Molecule tests
28+
run: make molecule-test
29+
env:
30+
PY_COLORS: "1"
31+
ANSIBLE_FORCE_COLOR: "1"
32+
IMAGE_DISTRO: debian13

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ RedHat and Debian based distros (x86_64)
105105

106106
###### Supported Linux Distributions:
107107

108-
- **Debian**: 11, 12
108+
- **Debian**: 11, 12, 13
109109
- **Ubuntu**: 22.04, 24.04
110110
- **CentOS Stream**: 9, 10
111111
- **Oracle Linux**: 8, 9, 10
@@ -121,8 +121,8 @@ all supported PostgreSQL versions
121121
_Table of results of daily automated testing of cluster deployment:_
122122
| Distribution | Test result |
123123
|--------------|:----------:|
124-
| Debian 11 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_debian11.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_debian11.yml) |
125-
| Debian 12 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_debian11.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_debian12.yml) |
124+
| Debian 12 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_debian12.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_debian12.yml) |
125+
| Debian 13 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_debian13.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_debian13.yml) |
126126
| Ubuntu 22.04 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_ubuntu2204.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_ubuntu2204.yml) |
127127
| Ubuntu 24.04 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_ubuntu2204.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_ubuntu2404.yml) |
128128
| CentOS Stream 9 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_centosstream9.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_centosstream9.yml) |

automation/molecule/default/converge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060

6161
- name: Set variables for Extensions test
6262
ansible.builtin.set_fact:
63-
enable_timescale: "{{ 'false' if ansible_distribution_major_version == '10' else 'true' }}" # no packages for RHEL 10 (TODO)
63+
# TODO: timescaledb packages are not available for RHEL 10, Debian 13
64+
# Citus packages are not available for Ubuntu 24.04 and Debian 13
65+
enable_timescale: "{{ 'false' if ansible_distribution_major_version in ['10'] or ansible_distribution_release in ['trixie'] else 'true' }}"
6466
enable_pg_repack: true
6567
enable_pg_cron: true
6668
enable_pgaudit: true
@@ -70,7 +72,7 @@
7072
enable_pg_stat_kcache: true
7173
enable_pg_wait_sampling: true
7274
enable_pg_partman: true
73-
enable_citus: "{{ 'false' if ansible_distribution_release == 'noble' else 'true' }}" # no packages for Ubuntu 24.04 (TODO)
75+
enable_citus: "{{ 'false' if ansible_distribution_release in ['noble', 'trixie'] else 'true' }}"
7476
enable_pgvectorscale: "{{ 'true' if ansible_distribution_release in ['bookworm', 'jammy', 'noble'] else 'false' }}" # only deb packages are available
7577
# create extension
7678
postgresql_extensions:

automation/molecule/pg_upgrade/converge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
# Extension Auto-Setup
2727
- name: Set variables for Extensions test
2828
ansible.builtin.set_fact:
29-
enable_timescale: "{{ 'false' if ansible_distribution_major_version == '10' else 'true' }}" # no packages for RHEL 10 (TODO)
29+
# TODO: timescaledb packages are not available for RHEL 10, Debian 13
30+
# Citus packages are not available for Ubuntu 24.04 and Debian 13
31+
enable_timescale: "{{ 'false' if ansible_distribution_major_version in ['10'] or ansible_distribution_release in ['trixie'] else 'true' }}"
3032
enable_pg_repack: true
3133
enable_pg_cron: true
3234
enable_pgaudit: true
@@ -36,7 +38,7 @@
3638
enable_pg_stat_kcache: true
3739
enable_pg_wait_sampling: true
3840
enable_pg_partman: true
39-
enable_citus: "{{ 'false' if ansible_distribution_release == 'noble' else 'true' }}" # no packages for Ubuntu 24.04 (TODO)
41+
enable_citus: "{{ 'false' if ansible_distribution_release in ['noble', 'trixie'] else 'true' }}"
4042
enable_pgvectorscale: "{{ 'true' if ansible_distribution_release in ['bookworm', 'jammy', 'noble'] else 'false' }}" # only deb packages are available
4143
# create extension
4244
postgresql_extensions:

automation/roles/packages/tasks/extensions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
vars:
3434
citus_package: >-
3535
[{% if ansible_os_family == 'Debian' and pg_version | default(postgresql_version) | int >= 15 %}
36-
"postgresql-{{ pg_version | default(postgresql_version) }}-citus-{{ citus_version | default('13.0') }}"
36+
"postgresql-{{ pg_version | default(postgresql_version) }}-citus-{{ citus_version | default('13.1') }}"
3737
{% elif ansible_os_family == 'Debian' and pg_version | default(postgresql_version) | int == 14 %}
3838
"postgresql-{{ pg_version | default(postgresql_version) }}-citus-12.1"
3939
{% elif ansible_os_family == 'Debian' and pg_version | default(postgresql_version) | int == 13 %}

0 commit comments

Comments
 (0)