From b62e770796de2ed009e863fd8ef520f1a23d3975 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 17 Oct 2024 16:27:44 -0400 Subject: [PATCH] fix: when oriole16 rm timescale from supautils conf --- ansible/tasks/stage2-setup-postgres.yml | 16 ++++++++++++++++ ansible/vars.yml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ansible/tasks/stage2-setup-postgres.yml b/ansible/tasks/stage2-setup-postgres.yml index e22cbe67b..e6a2616f5 100644 --- a/ansible/tasks/stage2-setup-postgres.yml +++ b/ansible/tasks/stage2-setup-postgres.yml @@ -3,6 +3,22 @@ # shell: | # sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11" # It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task + +- name: Check psql_version and modify supautils.conf if necessary + block: + - name: Check if psql_version is psql_oriole-16 + set_fact: + is_psql_oriole_16: "{{ psql_version == 'psql_oriole-16' }}" + + - name: Remove 'timescaledb,' from supautils.conf + ansible.builtin.lineinfile: + path: /etc/postgresql-custom/supautils.conf + regexp: 'timescaledb,' + line: '' + state: absent + when: is_psql_oriole_16 and stage2_nix + become: yes + - name: Install Postgres from nix binary cache become: yes shell: | diff --git a/ansible/vars.yml b/ansible/vars.yml index 413704ad4..0b870393d 100644 --- a/ansible/vars.yml +++ b/ansible/vars.yml @@ -11,7 +11,7 @@ postgres_major: postgres_release: #postgres15: "15.8.1.003-staging-5" #postgres16: "16.3.1.000-staging-5" - postgresoriole-16: "oriole-16.3.1.000-staging-3" + postgresoriole-16: "oriole-16.3.1.000-staging-4" # Non Postgres Extensions pgbouncer_release: "1.19.0"