Skip to content

Commit 6b19e6b

Browse files
committed
feat: do not enable pgjwt by default in pg 15
1 parent 52f0bbc commit 6b19e6b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
- name: Check if psql_version is psql_17
1414
set_fact:
1515
is_psql_17: "{{ psql_version in ['psql_17'] }}"
16+
17+
- name: Check if psql_version is psql_15
18+
set_fact:
19+
is_psql_15: "{{ psql_version in ['psql_15'] }}"
1620

1721
- name: Remove specified extensions from postgresql.conf if orioledb-17 or 17 build
1822
ansible.builtin.command:
@@ -30,6 +34,14 @@
3034
when: is_psql_oriole or is_psql_17 and stage2_nix
3135
become: yes
3236

37+
- name: Remove pgjwt from supautils.conf if 15 build
38+
ansible.builtin.command:
39+
cmd: >
40+
sed -i 's/ pgjwt,//g'
41+
/etc/postgresql-custom/supautils.conf
42+
when: is_psql_15 and stage2_nix
43+
become: yes
44+
3345
- name: Remove db_user_namespace from postgresql.conf if orioledb-17 or 17 build
3446
ansible.builtin.command:
3547
cmd: >

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.0.1.078-orioledb"
13-
postgres17: "17.4.1.028"
14-
postgres15: "15.8.1.085"
12+
postgresorioledb-17: "17.0.1.078-orioledb-pgjwt15-1"
13+
postgres17: "17.4.1.028-pgjwt15-1"
14+
postgres15: "15.8.1.085-pgjwt15-1"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)