Skip to content

Commit 5157fbe

Browse files
committed
chore: Update PostgREST setup and versions
- Refactored PostgREST APT GPG key management to use `get_url` and `file` as `apt_key` is deprecated - Updated PostgreSQL release versions to include the `-PSQL838` suffix, indicating specific builds for this project.
1 parent c53a4f8 commit 5157fbe

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

ansible/tasks/setup-postgrest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
state: 'present'
55

66
- name: PostgREST - add Postgres PPA gpg key
7-
ansible.builtin.apt_key:
7+
ansible.builtin.get_url:
8+
dest: /etc/apt/trusted.gpg.d/ppdg.asc
9+
force: true
10+
mode: '0644'
811
url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
9-
state: 'present'
1012

1113
- name: PostgREST - add Postgres PPA main
1214
ansible.builtin.apt_repository:
@@ -30,9 +32,9 @@
3032
msg: "Installed libpq5 version: {{ ansible_facts['packages']['libpq5'][0]['version'] }}"
3133

3234
- name: PostgREST - remove Postgres PPA gpg key
33-
ansible.builtin.apt_key:
35+
ansible.builtin.file:
36+
path: /etc/apt/trusted.gpg.d/ppdg.asc
3437
state: 'absent'
35-
url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
3638

3739
- name: PostgREST - remove Postgres PPA
3840
ansible.builtin.apt_repository:

ansible/vars.yml

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

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.6.0.011-orioledb"
14-
postgres17: "17.6.1.054"
15-
postgres15: "15.14.1.054"
13+
postgresorioledb-17: "17.6.0.012-orioledb-PSQL838"
14+
postgres17: "17.6.1.055-PSQL838"
15+
postgres15: "15.14.1.055-PSQL838"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.19.0

0 commit comments

Comments
 (0)