Skip to content

Commit b62e770

Browse files
committed
fix: when oriole16 rm timescale from supautils conf
1 parent 5e69b00 commit b62e770

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# shell: |
44
# sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
55
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
6+
7+
- name: Check psql_version and modify supautils.conf if necessary
8+
block:
9+
- name: Check if psql_version is psql_oriole-16
10+
set_fact:
11+
is_psql_oriole_16: "{{ psql_version == 'psql_oriole-16' }}"
12+
13+
- name: Remove 'timescaledb,' from supautils.conf
14+
ansible.builtin.lineinfile:
15+
path: /etc/postgresql-custom/supautils.conf
16+
regexp: 'timescaledb,'
17+
line: ''
18+
state: absent
19+
when: is_psql_oriole_16 and stage2_nix
20+
become: yes
21+
622
- name: Install Postgres from nix binary cache
723
become: yes
824
shell: |

ansible/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ postgres_major:
1111
postgres_release:
1212
#postgres15: "15.8.1.003-staging-5"
1313
#postgres16: "16.3.1.000-staging-5"
14-
postgresoriole-16: "oriole-16.3.1.000-staging-3"
14+
postgresoriole-16: "oriole-16.3.1.000-staging-4"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)