Skip to content

Commit

Permalink
fix: when oriole16 rm timescale from supautils conf
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Oct 17, 2024
1 parent 5e69b00 commit b62e770
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions ansible/tasks/stage2-setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b62e770

Please sign in to comment.